component-template
component-template copied to clipboard
emitCss
I tried implement the pattern from this library but using https://github.com/sveltejs/template I did this because I wanted typescript and a dev server while developing the component.
I kept getting this error.
Identifier directly after number (Note that you need plugins to import files that are not JavaScript)
Took me quite a while to figure out with rollup-plugin-svelte 7 you need emitCss: false
.
svelte({
emitCss: false,
}),
This might be obvious to other but as someone just starting with svelte it wasn't. Hopefully this might help someone else. It would be nice if this template was better aligned with https://github.com/sveltejs/template
Thanks @ccadieux, it already helped me!
(Edit: removed some remarks, because they are already covered in another issue)