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

Resolve "module", "jsnext:main" and "browser" before "main" #299

Merged
merged 1 commit into from
Dec 20, 2017

Conversation

fathyb
Copy link
Contributor

@fathyb fathyb commented Dec 15, 2017

This is needed for a lot of libraries who ship their Node.js version in the main field (see #298). This will also use the ES6 modules version of some libraries (instead of UMD) and might lead to a better bundling/sharing of dependencies.

@fathyb fathyb force-pushed the fix/module-resolve branch from 3e72a4a to d9be8dd Compare December 15, 2017 22:24
@devongovett devongovett merged commit 7fcae06 into parcel-bundler:master Dec 20, 2017
@devongovett
Copy link
Member

Would be good to add a test for this! Would you like to follow up with that @fathyb? Thanks!

@fathyb
Copy link
Contributor Author

fathyb commented Dec 20, 2017

I'll make another PR for the tests later today. I also found a bug a few minutes ago where some libraries define an object inside of module, I'll make another to prevent that 😅

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

Successfully merging this pull request may close these issues.

2 participants