-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scripts: Update webpack to v5 (try 2) (#33818)
* Scripts: Update webpack to v5 (try 2) * Remove the deprecated flatten option of CopyPlugin * Custom name function for split chunks * Update the default webpack config for `@wordpress/scripts` It adjusts handling for assets that changed in v5. * Try: Webpack 5 packages entry library config * Update hashes in test snapshots * Deprecate Library Export Default Webpack Plugin for webpack 5 * Update `@wordpress/scripts` changelog file * Docs: Add changelog entry in `@wordpress/dependency-extraction-webpack-plugin` * Revert `webpack-sources` version upgrade * Make Storybook run with webpack 5 * Log asset names in test messages, avoid optimizing out the entire source * Improve webpack config for Storybook * Increase the minimum Node version in `@wordpress/scripts` * Ensure sthere is no empty JS file for exctracted CSS file Co-authored-by: Jarda Snajdr <[email protected]> Co-authored-by: Petter Walbø Johnsgård <[email protected]>
- Loading branch information
1 parent
fd332d2
commit a510403
Showing
23 changed files
with
6,207 additions
and
3,666 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,8 @@ | |
"@storybook/addon-knobs": "6.2.9", | ||
"@storybook/addon-storysource": "6.3.2", | ||
"@storybook/addon-viewport": "6.3.2", | ||
"@storybook/builder-webpack5": "6.3.6", | ||
"@storybook/manager-webpack5": "6.3.6", | ||
"@storybook/react": "6.3.2", | ||
"@testing-library/jest-dom": "5.11.9", | ||
"@testing-library/react": "11.2.2", | ||
|
@@ -118,8 +120,6 @@ | |
"@types/sprintf-js": "1.1.2", | ||
"@types/tinycolor2": "1.4.2", | ||
"@types/uuid": "8.3.0", | ||
"@types/webpack": "4.41.16", | ||
"@types/webpack-sources": "0.1.7", | ||
"@wordpress/babel-plugin-import-jsx-pragma": "file:packages/babel-plugin-import-jsx-pragma", | ||
"@wordpress/babel-plugin-makepot": "file:packages/babel-plugin-makepot", | ||
"@wordpress/babel-preset-default": "file:packages/babel-preset-default", | ||
|
@@ -159,10 +159,10 @@ | |
"chalk": "4.1.1", | ||
"commander": "4.1.0", | ||
"concurrently": "3.5.0", | ||
"copy-webpack-plugin": "6.4.0", | ||
"copy-webpack-plugin": "9.0.1", | ||
"core-js-builder": "3.11.0", | ||
"cross-env": "3.2.4", | ||
"css-loader": "5.1.3", | ||
"css-loader": "6.2.0", | ||
"cssnano": "5.0.7", | ||
"deep-freeze": "0.0.1", | ||
"enzyme": "3.11.0", | ||
|
@@ -191,7 +191,7 @@ | |
"node-watch": "0.7.0", | ||
"patch-package": "6.2.2", | ||
"postcss": "8.2.15", | ||
"postcss-loader": "4.2.0", | ||
"postcss-loader": "6.1.1", | ||
"prettier": "npm:[email protected]", | ||
"progress": "2.0.3", | ||
"react": "17.0.1", | ||
|
@@ -201,20 +201,20 @@ | |
"rimraf": "3.0.2", | ||
"rtlcss": "2.6.2", | ||
"sass": "1.35.2", | ||
"sass-loader": "10.1.1", | ||
"sass-loader": "12.1.0", | ||
"semver": "7.3.2", | ||
"simple-git": "^2.35.0", | ||
"snapshot-diff": "0.8.1", | ||
"source-map-loader": "0.2.4", | ||
"source-map-loader": "3.0.0", | ||
"sprintf-js": "1.1.1", | ||
"style-loader": "2.0.0", | ||
"terser-webpack-plugin": "3.0.3", | ||
"style-loader": "3.2.1", | ||
"terser-webpack-plugin": "5.1.4", | ||
"typescript": "4.1.3", | ||
"uglify-js": "3.13.7", | ||
"uuid": "8.3.0", | ||
"wd": "1.12.1", | ||
"webpack": "4.46.0", | ||
"webpack-bundle-analyzer": "4.2.0", | ||
"webpack": "5.47.1", | ||
"webpack-bundle-analyzer": "4.4.2", | ||
"worker-farm": "1.7.0" | ||
}, | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
packages/library-export-default-webpack-plugin/test/fixtures/boo/index.js
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
packages/library-export-default-webpack-plugin/test/fixtures/foo/index.js
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
packages/library-export-default-webpack-plugin/test/fixtures/webpack.config.js
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
packages/library-export-default-webpack-plugin/test/index.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.