A Parcel 2 transformer for Svelte 3.
you should configure in .parcelrc
the transformation for Svelte files:
{
"extends": ["@parcel/config-default"],
"transforms": {
"*.svelte": ["parcel-transformer-svelte3"]
}
}
You can change Svelte options though a .svelterc
, svelte.config.js
file .
// Options used by svelte.compile
compiler: {
...
},
// Preprocessors for svelte.preprocess
preprocessors: {
...
}