-
-
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
Webpack5 update [DRAFT] #10656
Webpack5 update [DRAFT] #10656
Conversation
This reverts commit 3968923.
* upstream/master: Update IMAGE_INLINE_SIZE_LIMIT docs (#10631) Publish Update CHANGELOG Prepare 4.0.3 release update immer to 8.0.1 to address vulnerability (#10412) Upgrade eslint-webpack-plugin to fix opt-out flag (#10590) Bump webpack-dev-server 3.11.0 -> 3.11.1 (#10312) tests: update test case to match the description (#10384) Publish Prepare 4.0.2 release Add opt-out for eslint-webpack-plugin (#10170) Add support for new BUILD_PATH advanced configuration variable (#8986) appTsConfig immutability handling by immer (#10027) Fix CI tests (#10217) docs: add missing override options for Jest config (#9473)
This reverts commit 580ed5d.
References: * [hook rename](TypeStrong/fork-ts-checker-webpack-plugin#490) * [include/exclude](TypeStrong/fork-ts-checker-webpack-plugin#450) and [issue options](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#issues-options) * [release notes 5.0.0](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases/tag/v5.0.0)
Add css-minimizer-webpack-plugin@1.1.5 Remove optimize-css-assets-webpack-plugin and postcss-safe-parser References: * https://webpack.js.org/plugins/css-minimizer-webpack-plugin/
supporting incremental typescript builds
Hey, I noticed |
Yep good catch! I'll see if I'll update in the weekend :) |
Could you publish updates to npm - would make testing easier... I.e. Swap |
This error is raised from webpack-manifest-plugin. Webpack 5 is not supported yet but maintainers are planning to add support. So you can change several lines in default.config.js output section from: output: { output: { Source: https://stackoverflow.com/questions/64019154/migrating-cra-to-webpack-5 |
@rickihastings now using asset modules Note: I did change alot of things, but have not tested extensively - a prerelease would enable the community to help out testing to harden this thing. Thank you for the feedback! :) |
@@ -5,6 +5,9 @@ | |||
/.pnp | |||
.pnp.js | |||
|
|||
# build cache info | |||
tsconfig.tsbuildinfo | |||
|
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 should set compilerOptions tsBuildInfoFile: paths.cacheTsBuildInfoFile
in the ForkTsCheckerWebpackPlugin
I try to change the code in App.js Then the error shows: |
Is there anything I can support with? I do like the initiative on updating webpack to v5 and would like to support if possible/needed |
@lukaskoeller Currently svgr react component imports seems broken + when starting in watch mode it seems a bit clucky/extra refresh + general QA/test pnp etc. I'll try to get a feature branch up this week making it easier to test/contribute |
How can i help with this PR? |
@@ -137,28 +134,16 @@ function createCompiler({ | |||
|
|||
let isFirstCompile = true; | |||
let tsMessagesPromise; |
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.
tsMessagesPromise
doesn't get resolved anywhere, does it?
I want to help too if you have too if you need any :). Hopefully this is released soon |
This reverts commit 952f896.
* upstream/wp5: Remove outdated comments on react-refresh (#10784) Suggest sass instead of node-sass package (#10779) Upgrade docs http links to https (#10288) Fix ICSS syntax in stylesheets (#10511) Update PWA docs to point at the cra-template-pwa package (#10805) Trivial English fixes (#10763) Bump y18n from 4.0.0 to 4.0.1 in /docusaurus/website (#10765) Update ModuleNotFoundPlugin to support Webpack 5 (#10205) Update WebpackManifestPlugin (#10204) Update PostCSS packages (#10456) react-dev-utils@11.0.4 Security Fix for Command Injection - huntr.dev (#10644)
Closing this pull-request in favor of #10961 targeted the wp5 branch |
Webpack 5 update
Includes the work listed in #9994
Additional changes:
Known issues:
WebpackManifestPlugin
is commented out due to "path undefined" error (feel free to investigate)Things I wanted to do but left out:
Credit include @andriijas, @sebinsua and @jasonwilliams (let me know if I missed out on any)