Skip to content
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

Update webpack globally #20789

Merged
merged 12 commits into from
Aug 24, 2021
2,490 changes: 754 additions & 1,736 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update webpack version to match other monorepo packages
2 changes: 1 addition & 1 deletion projects/js-packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"react": "17.0.2",
"sass-loader": "^10",
"style-loader": "2.0.0",
"webpack": "5.47.1"
"webpack": "5.51.1"
},
"engines": {
"node": "^14.16.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update to latest webpack, webpack-cli and calypso-build
4 changes: 2 additions & 2 deletions projects/packages/connection-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"watch": "pnpm run build && pnpx gulp watch"
},
"dependencies": {
"@automattic/calypso-build": "6.5.0",
"@automattic/calypso-build": "9.0.0",
"@automattic/jetpack-api": "workspace:^0.1.0",
"@automattic/jetpack-connection": "workspace:^0.6.0-alpha",
"@babel/core": "7.12.10",
Expand All @@ -27,7 +27,7 @@
"react": "17.0.2",
"react-dom": "17.0.2",
"static-site-generator-webpack-plugin": "3.4.2",
"webpack": "4.46.0"
"webpack": "5.51.1"
},
"devDependencies": {
"@babel/runtime": "7.14.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update to latest webpack, webpack-cli and calypso-build
4 changes: 2 additions & 2 deletions projects/packages/identity-crisis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"watch": "pnpm run build && pnpx gulp watch"
},
"dependencies": {
"@automattic/calypso-build": "6.5.0",
"@automattic/calypso-build": "9.0.0",
"@babel/core": "7.12.10",
"@babel/helper-module-imports": "7.12.5",
"@babel/preset-env": "7.12.11",
Expand All @@ -23,7 +23,7 @@
"fancy-log": "1.3.3",
"gulp": "4.0.2",
"static-site-generator-webpack-plugin": "3.4.2",
"webpack": "4.45.0"
"webpack": "5.51.1"
},
"devDependencies": {
"@wordpress/dependency-extraction-webpack-plugin": "3.2.1",
Expand Down
4 changes: 4 additions & 0 deletions projects/packages/jitm/changelog/try-update-webpack-globally
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update to latest webpack, webpack-cli and calypso-build
4 changes: 2 additions & 2 deletions projects/packages/jitm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"devDependencies": {
"eslint": "7.31.0",
"webpack": "5.50.0",
"webpack-cli": "4.5.0"
"webpack": "5.51.1",
"webpack-cli": "4.8.0"
},
"engines": {
"node": "^14.16.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update to latest webpack, webpack-cli and calypso-build
7 changes: 4 additions & 3 deletions projects/packages/lazy-images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"author": "Automattic",
"scripts": {
"build": "pnpm run install-if-deps-outdated && pnpm run clean && pnpm run build-js",
"build-js": "calypso-build --output-path=./dist lazy-images='./src/js/lazy-images.js' intersection-observer=./node_modules/intersection-observer/intersection-observer.js && cp ./node_modules/intersection-observer/intersection-observer.js ./dist/intersection-observer.src.js",
"build-js": "calypso-build && cp ./node_modules/intersection-observer/intersection-observer.js ./dist/intersection-observer.src.js",
"build-production": "pnpm run distclean && pnpm run install-if-deps-outdated && pnpm run build-production-js",
"build-production-js": "NODE_ENV=production BABEL_ENV=production pnpm run build-js && pnpm run validate-es5 -- ./dist/",
"clean": "rm -rf dist",
Expand All @@ -25,8 +25,9 @@
"intersection-observer": "^0.12.0"
},
"devDependencies": {
"@automattic/calypso-build": "6.5.0",
"eslint": "7.31.0"
"@automattic/calypso-build": "9.0.0",
"eslint": "7.31.0",
"webpack": "5.51.1"
},
"engines": {
"node": "^14.16.1",
Expand Down
31 changes: 31 additions & 0 deletions projects/packages/lazy-images/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* External dependencies
*/
const getBaseWebpackConfig = require( '@automattic/calypso-build/webpack.config.js' );
const path = require( 'path' );

const baseConfig = getBaseWebpackConfig(
{ WP: false },
{
entry: {}, // We'll override later
'output-filename': '[name].js',
'output-path': path.join( __dirname, './dist' ),
}
);

module.exports = [
{
...baseConfig,
resolve: {
...baseConfig.resolve,
modules: [ 'node_modules' ],
},
entry: {
'lazy-images': path.join( __dirname, './src/js/lazy-images.js' ),
'intersection-observer': path.join(
__dirname,
'./node_modules/intersection-observer/intersection-observer.js'
),
},
},
];
4 changes: 4 additions & 0 deletions projects/plugins/backup/changelog/try-update-webpack-globally
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Update to latest webpack, webpack-cli and calypso-build
6 changes: 3 additions & 3 deletions projects/plugins/backup/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
],
"dependencies": {
"@automattic/jetpack-api": "workspace:^0.1.0",
"@automattic/jetpack-connection": "workspace:^0.6.0-alpha",
"@automattic/jetpack-components": "workspace:^0.2.2-alpha",
"@automattic/jetpack-connection": "workspace:^0.6.0-alpha",
"@wordpress/api-fetch": "5.2.1",
"@wordpress/data": "6.0.1",
"@wordpress/date": "4.2.1",
Expand All @@ -39,7 +39,7 @@
"react-dom": "17.0.2"
},
"devDependencies": {
"@automattic/calypso-build": "7.0.0",
"@automattic/calypso-build": "9.0.0",
"@babel/core": "7.13.14",
"@babel/helper-module-imports": "7.13.12",
"@babel/preset-env": "7.13.12",
Expand All @@ -50,7 +50,7 @@
"concurrently": "6.0.2",
"fancy-log": "1.3.3",
"gulp": "4.0.2",
"webpack": "5.31.0"
"webpack": "5.51.1"
},
"engines": {
"node": "^14.16.1",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Update to latest webpack, webpack-cli and calypso-build
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@
"url": "0.11.0",
"url-polyfill": "1.1.12",
"uuid": "8.3.2",
"webpack": "5.31.0",
"webpack": "5.51.1",
"webpack-cli": "4.8.0",
"whatwg-fetch": "3.6.2"
},
Expand Down