Suggestion to break up the upgrade to Webpack 5 into smaller pull-requests
ESLintPlugin instead of eslint-loaderGenerateSW changed signature (Fixed in PR #9205 using InjectManifest instead?)ModuleScopePlugin.js (might have been fixed?)PnpWebpackPlugin (supported as default in WP5 - is this plugin still required? - also seems like tests PnP are broken)~postcss-loader (QA done - ready for review)ForkTsCheckerWebpackPlugincss-minimizer-webpack-plugin instead of OptimizeCSSAssetsPluginIgnorePlugin changed signatureformatWebpackMessages.js (message is an object in WP5)ModuleNotFoundPlugin.js adding support for SingleEntryPlugin -> EntryPluginManifestPlugin plugin is slowly getting up to speed / maintained again (current version use 3.0.0-rc.0 eta early December?)html-webpack-plugin - (Currently 5.0.0-alpha.14 is working waiting for v5.0.0)terser-webpack-plugin (no apparent changes needed, remove usage of cache/cacheKeys/sourceMap Read changelog)formatWebpackMessages.js remove usage of chalk in client codeRegarding federated modules:
~* [ ] The Webpack dev server doesn't yet support federated modules so we'll likely have to wait abit on that.~
Out of scope - read more in #9510
Notes:
fork-ts-checker-webpack-plugin as I read it - but it would be great to QA / fix the testsReferences:
pnp plugin won't be needed once you upgrade to Webpack 5, so maybe you can remove it as part of the single PR
https://webpack.js.org/migrate/5/#clean-up-configuration
What pnp tests are broken?
@jasonwilliams cool, I'll strike out the PnP task - regarding tests it's the yarn docker:e2e --test-suite I think it was e2e-installs (one of them ends with a PnP test that breaks when testing locally, but more tests are actually breaking atm. I have a stash for fixing the simple test when I need it)
@raix do you need help on anything? Looks like its just PRs waiting to be reviewed
@jasonwilliams I think if the simple e2e test passes it should be good to complete (unfortunately for the tests to run there is missing support for the new JSX babel transformation when testing + .eslintcache needs to be git ignored in each of the templates)
@jasonwilliams I need to QA 3 of the pr's and address review comments in 10005 / I'll likely only get to those comments in the weekend, if you have time feel free to jump in to QA/resolve comments or make pr's the other updates.
@raix theres some I looked at, how are you testing? Are you linking the repo then launching with npx? I know nothing about tap so couldn鈥檛 do much on the forkTsChecker one
@iansu can we pin this issue?
@raix https://github.com/facebook/create-react-app/pull/10121 for the formatting
Most helpful comment
@raix https://github.com/facebook/create-react-app/pull/10121 for the formatting