Add jsnext:main to package.json
nicolasparada opened this issue · 6 comments
nicolasparada commented
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?
yyx990803 commented
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.
nicolasparada commented
Ok ;)
rpjohnst commented
This is fixed in 2.2, using the new pkg.module
instead of jsnext:main
.
ryanve commented
@rpjohnst are there docs for pkg.module
on the web? Is this an official npm field or a convention?
rpjohnst commented