So I was excited to be able to use ES6 with Meteor 1.3 – I was hoping to make use of const and let, etc. So I wrote an NPM package that makes use of this stuff, installed it with npm into my meteor project, and now I get this error:
If you’re writing your own npm package, you should probably use something like webpack and babel to allow you to transpile your code so it’s globally usable. Many people put their ES2015 code in a folder like src and have it build/transpile to a folder called lib or dist.
No bundling system - Meteor, Webpack, etc - compiles NPM packages after they are installed. The practice on NPM is to compile packages before you publish them, and yes you basically have to set that up manually right now.
Yes. I made a brand new meteor app and the only thing I have done so far is to try and include my NPM package (directly from my source). Apparently I’m not doing something exactly correctly. The ecmascript package was included my default and I see it when I type meteor list.