Create-react-app: Why not using webpack 2?

Created on 12 Apr 2017  ·  7Comments  ·  Source: facebook/create-react-app

Hey, I'm trying to tweak the build so I eject it. Then I find create-react-app is still using webpack 1. Why and any plan to update?

Most helpful comment

Yep, we'll update it soon. Generally we try to ensure tools work well before updating. We found multiple isssues in Webpack 2 and didn't release an update earlier because we were waiting for them to get fixed. I think it should be fine now, but I hope this gives you an idea of why we don't chase the latest versions immediately.

All 7 comments

You'll see master does in fact use Webpack 2, it's just not ready for release yet. https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/package.json#L57.

I imagine it will come in on of the next few versions.

Yep, we'll update it soon. Generally we try to ensure tools work well before updating. We found multiple isssues in Webpack 2 and didn't release an update earlier because we were waiting for them to get fixed. I think it should be fine now, but I hope this gives you an idea of why we don't chase the latest versions immediately.

I'm waiting for it

Sooooon 😄

@ThadeuBrito one of our largest blockers right now are bugs in extract-text-webpack-plugin, namely it doesn't work with import() which we are going to be pushing hard in the webpack 2 upgrade.

If you can show https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/406 and https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/436 are no longer problematic or help get them fixed, that would be great!

I'm also waiting for it!

We know! Sorry, but further “+1”s are not very helpful. Let’s avoid adding more comments that just express the support for this.

Was this page helpful?
0 / 5 - 0 ratings