I was playing around with Svelte, trying to integrate it with Meteor. Then, by accident, I found
It works just fine, but when I was making changes to the package so I could use PostCSS inside Svelte’s
I thought it’s up to the app’s developer to either include
ecmascriptpackage or not
Thinking I could just remove the
Babel.compilestep, I refactored the code to just use the Svelte-compiler’s result instead. After all, the package includes
ecmascriptas does my test app too.
To my surprise, I got ES6 code shipped to the browser and naturally some syntax errors followed.
I wonder if some helpful soul could maybe explain what’s wrong with my thinking in how the build system works regarding code transpilation?
(The documenation on Meteor’s plugin system is really scarce)