Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jsnext:main to package.json #2880

Closed
nicolasparada opened this issue May 16, 2016 · 6 comments
Closed

Add jsnext:main to package.json #2880

nicolasparada opened this issue May 16, 2016 · 6 comments

Comments

@nicolasparada
Copy link

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
Copy link
Member

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
Copy link
Author

Ok ;)

@rpjohnst
Copy link

This is fixed in 2.2, using the new pkg.module instead of jsnext:main.

@ryanve
Copy link

ryanve commented Mar 10, 2017

@rpjohnst are there docs for pkg.module on the web? Is this an official npm field or a convention?

@rpjohnst
Copy link

@ryanve The place I ran into it was here. Seems to be a convention shared among several bundlers.

@ryanve
Copy link

ryanve commented Mar 10, 2017

@rpjohnst Cool thanks!

qgustavor referenced this issue in nuxt/vue-meta Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants