Add jsnext:main to package.json
nicolasparada opened this issue · comments
I noticed that in vue-router, you added jsnext:main pointing to the src folder.
Why you didn't do the same in all vuejs projects?
It is a non-standard property only used by some tools. As Node is starting to discuss official support for ES6 modules, we'll just wait for something more standarized.
Ok ;)
This is fixed in 2.2, using the new pkg.module instead of jsnext:main.
@rpjohnst are there docs for pkg.module on the web? Is this an official npm field or a convention?
@rpjohnst Cool thanks!