-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Feature/webpack3 #2574
Feature/webpack3 #2574
Conversation
Any idea why flow server crashes? |
@themre Webpack 3's biggest feature being scopes, using |
yeah, I know, I just wanted to add feature by feature and see where it fails. and obviously it fails only by bumping :) |
No need to worry about AppVeyor for now, it's pretty flaky because many tools don't support Windows as well as their macOS/nix counterparts. Just try to get Travis passing. 😄 Thanks a lot for looking into this. |
thanks for the info! added ModuleConcatenationPlugin for when later. also noticed this: |
I don't think it's appveyor now. noticed this also when running locally: |
Yeah, be advised that the We'll need to keep a close eye on |
Is there any reason you included the |
strange, it merged that commit, but not package.json (which is missing import of source-map-loader). removed it for now. |
Great! Thanks. I see a warning:
Would you mind taking a peek into this and identifying the offending module? We need to compile a list of plugins that were broken and need updating by webpack 3. Additionally, we need to compile a list of breaking changes in webpack@3 that may affect us. |
extract-text-webpack-plugin. |
@shrynx already mentioned it :) thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on it! Left a few comments.
@@ -254,6 +254,7 @@ module.exports = { | |||
// Makes some environment variables available to the JS code, for example: | |||
// if (process.env.NODE_ENV === 'development') { ... }. See `./env.js`. | |||
new webpack.DefinePlugin(env.stringified), | |||
new webpack.optimize.ModuleConcatenationPlugin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't include this yet. It is too experimental.
@@ -293,6 +293,7 @@ module.exports = { | |||
}, | |||
sourceMap: true, | |||
}), | |||
new webpack.optimize.ModuleConcatenationPlugin(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
packages/react-scripts/package.json
Outdated
"url-loader": "0.5.8", | ||
"webpack": "2.6.1", | ||
"webpack-dev-server": "2.4.5", | ||
"react-dev-utils": "^3.0.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is our own module. Please don't bump it now. It is bumped during the release.
packages/react-scripts/package.json
Outdated
"webpack": "2.6.1", | ||
"webpack-dev-server": "2.4.5", | ||
"react-dev-utils": "^3.0.2", | ||
"react-error-overlay": "^1.0.9", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same.
@@ -48,13 +48,13 @@ | |||
"postcss-flexbugs-fixes": "3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we need to bump ExtractTextPlugin?
ok, I removed ModuleConcatenationPlugin, downgraded react packages and bumped ETWP. |
ETWP rc1 has been released. I updated it only to see if everything goes through so we can report if something else fails. |
It fails with 3.3.0. Will see if it fails with 3.2.0. |
hm... it's failing, because:
It seems initDOM.js (https://github.com/facebookincubator/create-react-app/blob/a171d930641f513279b1c7ceaab1fa9bbbbbb896/packages/react-scripts/fixtures/kitchensink/integration/initDOM.js) tries to load json-loader which isn't required anymore. How do we approach this? |
Hmm I'm not sure where this is coming from 😞 |
I filed an issue in webpack-contrib/json-loader#57. |
great, thanks! |
@themre - I stripped the deprecation warning in To the issue in In the mean time, i am locking json-loader until we resolve the issue upstream. It was deprecated, should be deprecated by can't be until Webpack doesn't directly depend on it. |
seems everything is ok now. |
Sweet. Wanna send another PR to bump to webpack 3.4 that just came out? |
Hi there! This change is out in |
* Add source-map-loader to support source maps of dependencies * merge with latest develop * add ModuleConcatenationPlugin * revert source-map-loader * bump to 3.1 and update dev-server * rebase to master * rebase again * bump webpack * remove ModuleConcatenationPlugin, downgraded react packages, bump etwp * ETWP rc1 only for testing * bump ETWP and webpack 3 * bump WP3 * revert to 3.2.0 * bump sw-precache-webpack-plugin * bump back to 3.3.0 * bump dev-server and manifest
* Add source-map-loader to support source maps of dependencies * merge with latest develop * add ModuleConcatenationPlugin * revert source-map-loader * bump to 3.1 and update dev-server * rebase to master * rebase again * bump webpack * remove ModuleConcatenationPlugin, downgraded react packages, bump etwp * ETWP rc1 only for testing * bump ETWP and webpack 3 * bump WP3 * revert to 3.2.0 * bump sw-precache-webpack-plugin * bump back to 3.3.0 * bump dev-server and manifest
* Add source-map-loader to support source maps of dependencies * merge with latest develop * add ModuleConcatenationPlugin * revert source-map-loader * bump to 3.1 and update dev-server * rebase to master * rebase again * bump webpack * remove ModuleConcatenationPlugin, downgraded react packages, bump etwp * ETWP rc1 only for testing * bump ETWP and webpack 3 * bump WP3 * revert to 3.2.0 * bump sw-precache-webpack-plugin * bump back to 3.3.0 * bump dev-server and manifest
* Add source-map-loader to support source maps of dependencies * merge with latest develop * add ModuleConcatenationPlugin * revert source-map-loader * bump to 3.1 and update dev-server * rebase to master * rebase again * bump webpack * remove ModuleConcatenationPlugin, downgraded react packages, bump etwp * ETWP rc1 only for testing * bump ETWP and webpack 3 * bump WP3 * revert to 3.2.0 * bump sw-precache-webpack-plugin * bump back to 3.3.0 * bump dev-server and manifest
Since Webpack 3 is officially released, I created PR with WP3 bump.