-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fix core-js build when using npm 3 #51
Conversation
👍 Cool I never got around to using NPM 3 yet... any major hurdles in general? |
My linux distro (Arch) upgraded the official repositories to nodejs 4.1 and npm 3. After applying the changes of this pull request and removing the previously build lib/webpack/core-js* files, everything was fine again. One thing: For one of my dependencies, react-sweetalert, I had to add the sweetalert package to my dependencies as it is declared as a peer dependency by the package author. Fortunately NPM3 still warns about unmet peerDependencies in the install tree which is displayed when doing "npm install" |
@JBBr cool NPM3 and 0.14 should help with double loading React! |
Hmmmmm...I want to figure out a solution that will work out of the box with npm 2 or npm 3, so that we don't have to complicate the requirements...I'll have to investigate if there are |
Wait, I'm thinking too hard. All I have to make the script do is query the npm version and pick the paths based upon whether it's 2 or 3. Duh :) |
The fix just adds core-js as a core dependency which ensures that it's available in node_modules. |
I'll try it in a docker container or use nvm - don't see why it shouldn't work with npm2. |
@JBBr ohhhh gotcha. I don't know for sure if it has to match. It would depend on what |
I verified NPM 2 compatibility by running my branch in a docker container with NPM 2.14.4 and node 4.1.1. I haven't had any problems. |
Just used this to get around my accidental NPM install... lol. works well. |
Fix core-js build when using npm 3
Cool, thanks guys! |
Don't rely on
core-js
inbabel-core
directory but add it as top level dependency.Fixes build after
npm install
with npm 3 and later.See #50