gulp-svelte
gulp-svelte copied to clipboard
Svelte version 3.x
does this work with svelte 3.x?
I was able to make this work with svelte 3 by doing the following:
1. Remove the installed v2 svelte
$ rm -rf ./node_modules/gulp-svelte/node_modules
2. Update the svelte
import
Change
const {compile, preprocess} = require('svelte');
To
const {compile, preprocess} = require('svelte/compiler');
I have created a pull request (#10) to resolve the issue, however @shinnn does not appear to be active on github anymore, so in the meantime the updated version can be used by installing from github directly: npm i -D Foxcapades/gulp-svelte#master