gulp-svelte icon indicating copy to clipboard operation
gulp-svelte copied to clipboard

Svelte version 3.x

Open gavinr opened this issue 5 years ago • 2 comments

does this work with svelte 3.x?

gavinr avatar Nov 30 '19 03:11 gavinr

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');

Foxcapades avatar Feb 23 '20 04:02 Foxcapades

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

Foxcapades avatar Feb 24 '20 16:02 Foxcapades