Unverified Commit 8324cf52 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

update webpack (#38988)

https://github.com/webpack/webpack/releases/tag/v5.74.0

There is a nice little performance fix for rebuild performance in this release.
It also fixes the edge case @Kikobeats did run into: https://vercel.slack.com/archives/CGU8HUTUH/p1656505879286119
parent 49d5e362
...@@ -199,9 +199,8 @@ ...@@ -199,9 +199,8 @@
"turbo": "1.3.2-canary.1", "turbo": "1.3.2-canary.1",
"typescript": "4.6.3", "typescript": "4.6.3",
"wait-port": "0.2.2", "wait-port": "0.2.2",
"webpack": "link:node_modules/webpack5", "webpack": "link:packages/next/node_modules/webpack5",
"webpack-bundle-analyzer": "4.3.0", "webpack-bundle-analyzer": "4.3.0"
"worker-loader": "3.0.7"
}, },
"resolutions": { "resolutions": {
"browserslist": "4.20.2", "browserslist": "4.20.2",
......
This diff is collapsed.
...@@ -273,7 +273,7 @@ ...@@ -273,7 +273,7 @@
"webpack-sources1": "npm:webpack-sources@1.4.3", "webpack-sources1": "npm:webpack-sources@1.4.3",
"webpack-sources3": "npm:webpack-sources@3.2.3", "webpack-sources3": "npm:webpack-sources@3.2.3",
"webpack4": "npm:webpack@4.44.1", "webpack4": "npm:webpack@4.44.1",
"webpack5": "npm:webpack@5.73.0", "webpack5": "npm:webpack@5.74.0",
"ws": "8.2.3" "ws": "8.2.3"
}, },
"resolutions": { "resolutions": {
......
...@@ -143,16 +143,17 @@ export async function createOriginalStackFrame({ ...@@ -143,16 +143,17 @@ export async function createOriginalStackFrame({
compilation?: webpack.Compilation compilation?: webpack.Compilation
}): Promise<OriginalStackFrameResponse | null> { }): Promise<OriginalStackFrameResponse | null> {
const moduleNotFound = findModuleNotFoundFromError(errorMessage) const moduleNotFound = findModuleNotFoundFromError(errorMessage)
const result = moduleNotFound const result =
? findOriginalSourcePositionAndContentFromCompilation( moduleNotFound && compilation
modulePath, ? findOriginalSourcePositionAndContentFromCompilation(
moduleNotFound, modulePath,
compilation moduleNotFound,
) compilation
: await findOriginalSourcePositionAndContent(source, { )
line, : await findOriginalSourcePositionAndContent(source, {
column, line,
}) column,
})
if (result === null) { if (result === null) {
return null return null
...@@ -204,7 +205,7 @@ export async function createOriginalStackFrame({ ...@@ -204,7 +205,7 @@ export async function createOriginalStackFrame({
export async function getSourceById( export async function getSourceById(
isFile: boolean, isFile: boolean,
id: string, id: string,
compilation: webpack.Compilation compilation?: webpack.Compilation
): Promise<Source> { ): Promise<Source> {
if (isFile) { if (isFile) {
const fileContent: string | null = await fs const fileContent: string | null = await fs
...@@ -228,7 +229,7 @@ export async function getSourceById( ...@@ -228,7 +229,7 @@ export async function getSourceById(
} }
try { try {
if (compilation == null) { if (!compilation) {
return null return null
} }
......
...@@ -162,9 +162,8 @@ importers: ...@@ -162,9 +162,8 @@ importers:
turbo: 1.3.2-canary.1 turbo: 1.3.2-canary.1
typescript: 4.6.3 typescript: 4.6.3
wait-port: 0.2.2 wait-port: 0.2.2
webpack: link:node_modules/webpack5 webpack: link:packages/next/node_modules/webpack5
webpack-bundle-analyzer: 4.3.0 webpack-bundle-analyzer: 4.3.0
worker-loader: 3.0.7
devDependencies: devDependencies:
'@babel/core': 7.18.0 '@babel/core': 7.18.0
'@babel/eslint-parser': 7.18.2_uxoojzahptggrua2tvdiqlh7xm '@babel/eslint-parser': 7.18.2_uxoojzahptggrua2tvdiqlh7xm
...@@ -316,9 +315,8 @@ importers: ...@@ -316,9 +315,8 @@ importers:
turbo: 1.3.2-canary.1 turbo: 1.3.2-canary.1
typescript: 4.6.3 typescript: 4.6.3
wait-port: 0.2.2 wait-port: 0.2.2
webpack: link:node_modules/webpack5 webpack: link:packages/next/node_modules/webpack5
webpack-bundle-analyzer: 4.3.0 webpack-bundle-analyzer: 4.3.0
worker-loader: 3.0.7_2opjno65lyt7hgwek6rdc5kfzu
packages/create-next-app: packages/create-next-app:
specifiers: specifiers:
...@@ -578,7 +576,7 @@ importers: ...@@ -578,7 +576,7 @@ importers:
webpack-sources1: npm:webpack-sources@1.4.3 webpack-sources1: npm:webpack-sources@1.4.3
webpack-sources3: npm:webpack-sources@3.2.3 webpack-sources3: npm:webpack-sources@3.2.3
webpack4: npm:webpack@4.44.1 webpack4: npm:webpack@4.44.1
webpack5: npm:webpack@5.73.0 webpack5: npm:webpack@5.74.0
ws: 8.2.3 ws: 8.2.3
dependencies: dependencies:
'@next/env': link:../next-env '@next/env': link:../next-env
...@@ -765,7 +763,7 @@ importers: ...@@ -765,7 +763,7 @@ importers:
webpack-sources1: /webpack-sources/1.4.3 webpack-sources1: /webpack-sources/1.4.3
webpack-sources3: /webpack-sources/3.2.3 webpack-sources3: /webpack-sources/3.2.3
webpack4: /webpack/4.44.1 webpack4: /webpack/4.44.1
webpack5: /webpack/5.73.0 webpack5: /webpack/5.74.0
ws: 8.2.3 ws: 8.2.3
packages/next-bundle-analyzer: packages/next-bundle-analyzer:
...@@ -868,7 +866,7 @@ importers: ...@@ -868,7 +866,7 @@ importers:
webpack: ^4 || ^5 webpack: ^4 || ^5
devDependencies: devDependencies:
react-refresh: 0.12.0 react-refresh: 0.12.0
webpack: 5.73.0 webpack: 5.74.0
packages: packages:
...@@ -6532,12 +6530,12 @@ packages: ...@@ -6532,12 +6530,12 @@ packages:
acorn-walk: 7.1.1 acorn-walk: 7.1.1
dev: true dev: true
/acorn-import-assertions/1.7.6_acorn@8.6.0: /acorn-import-assertions/1.7.6_acorn@8.8.0:
resolution: {integrity: sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA==} resolution: {integrity: sha512-FlVvVFA1TX6l3lp8VjDnYYq7R1nyW6x3svAt4nDgrWQ9SBaSh9CnbwgSUTasgfNfOG5HlM1ehugCvM+hjo56LA==}
peerDependencies: peerDependencies:
acorn: ^8 acorn: ^8
dependencies: dependencies:
acorn: 8.6.0 acorn: 8.8.0
dev: true dev: true
/acorn-jsx/5.3.1_acorn@7.4.1: /acorn-jsx/5.3.1_acorn@7.4.1:
...@@ -6586,6 +6584,12 @@ packages: ...@@ -6586,6 +6584,12 @@ packages:
engines: {node: '>=0.4.0'} engines: {node: '>=0.4.0'}
hasBin: true hasBin: true
/acorn/8.8.0:
resolution: {integrity: sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w==}
engines: {node: '>=0.4.0'}
hasBin: true
dev: true
/add-stream/1.0.0: /add-stream/1.0.0:
resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==} resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==}
dev: true dev: true
...@@ -10078,8 +10082,8 @@ packages: ...@@ -10078,8 +10082,8 @@ packages:
tapable: 1.1.3 tapable: 1.1.3
dev: true dev: true
/enhanced-resolve/5.9.3: /enhanced-resolve/5.10.0:
resolution: {integrity: sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==} resolution: {integrity: sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==}
engines: {node: '>=10.13.0'} engines: {node: '>=10.13.0'}
dependencies: dependencies:
graceful-fs: 4.2.9 graceful-fs: 4.2.9
...@@ -10444,6 +10448,7 @@ packages: ...@@ -10444,6 +10448,7 @@ packages:
eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0
dependencies: dependencies:
eslint: 7.32.0 eslint: 7.32.0
dev: false
/eslint-plugin-react/7.23.2_eslint@7.24.0: /eslint-plugin-react/7.23.2_eslint@7.24.0:
resolution: {integrity: sha512-AfjgFQB+nYszudkxRkTFu0UR1zEQig0ArVMPloKhxwlwkzaw/fBiH0QWcBBhZONlXqQC51+nfqFrkn4EzHcGBw==} resolution: {integrity: sha512-AfjgFQB+nYszudkxRkTFu0UR1zEQig0ArVMPloKhxwlwkzaw/fBiH0QWcBBhZONlXqQC51+nfqFrkn4EzHcGBw==}
...@@ -20916,7 +20921,7 @@ packages: ...@@ -20916,7 +20921,7 @@ packages:
worker-farm: 1.7.0 worker-farm: 1.7.0
dev: true dev: true
/terser-webpack-plugin/5.2.4_webpack@5.73.0: /terser-webpack-plugin/5.2.4_webpack@5.74.0:
resolution: {integrity: sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==} resolution: {integrity: sha512-E2CkNMN+1cho04YpdANyRrn8CyN4yMy+WdFKZIySFZrGXZxJwJP6PMNGGc/Mcr6qygQHUUqRxnAPmi0M9f00XA==}
engines: {node: '>= 10.13.0'} engines: {node: '>= 10.13.0'}
peerDependencies: peerDependencies:
...@@ -20938,7 +20943,7 @@ packages: ...@@ -20938,7 +20943,7 @@ packages:
serialize-javascript: 6.0.0 serialize-javascript: 6.0.0
source-map: 0.6.1 source-map: 0.6.1
terser: 5.14.1 terser: 5.14.1
webpack: 5.73.0 webpack: 5.74.0
dev: true dev: true
/terser/4.8.0: /terser/4.8.0:
...@@ -20946,7 +20951,7 @@ packages: ...@@ -20946,7 +20951,7 @@ packages:
engines: {node: '>=6.0.0'} engines: {node: '>=6.0.0'}
hasBin: true hasBin: true
dependencies: dependencies:
acorn: 8.6.0 acorn: 8.8.0
commander: 2.20.3 commander: 2.20.3
source-map: 0.6.1 source-map: 0.6.1
source-map-support: 0.5.20 source-map-support: 0.5.20
...@@ -20972,7 +20977,7 @@ packages: ...@@ -20972,7 +20977,7 @@ packages:
hasBin: true hasBin: true
dependencies: dependencies:
'@jridgewell/source-map': 0.3.2 '@jridgewell/source-map': 0.3.2
acorn: 8.6.0 acorn: 8.8.0
commander: 2.20.3 commander: 2.20.3
source-map-support: 0.5.20 source-map-support: 0.5.20
dev: true dev: true
...@@ -20982,7 +20987,7 @@ packages: ...@@ -20982,7 +20987,7 @@ packages:
engines: {node: '>=10'} engines: {node: '>=10'}
hasBin: true hasBin: true
dependencies: dependencies:
acorn: 8.6.0 acorn: 8.8.0
commander: 2.20.3 commander: 2.20.3
source-map: 0.7.3 source-map: 0.7.3
source-map-support: 0.5.20 source-map-support: 0.5.20
...@@ -21295,7 +21300,7 @@ packages: ...@@ -21295,7 +21300,7 @@ packages:
typescript: 4.6.3 typescript: 4.6.3
/tty-browserify/0.0.0: /tty-browserify/0.0.0:
resolution: {integrity: sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=} resolution: {integrity: sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==}
dev: true dev: true
/tty-browserify/0.0.1: /tty-browserify/0.0.1:
...@@ -22347,8 +22352,8 @@ packages: ...@@ -22347,8 +22352,8 @@ packages:
- supports-color - supports-color
dev: true dev: true
/webpack/5.73.0: /webpack/5.74.0:
resolution: {integrity: sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==} resolution: {integrity: sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==}
engines: {node: '>=10.13.0'} engines: {node: '>=10.13.0'}
hasBin: true hasBin: true
peerDependencies: peerDependencies:
...@@ -22362,11 +22367,11 @@ packages: ...@@ -22362,11 +22367,11 @@ packages:
'@webassemblyjs/ast': 1.11.1 '@webassemblyjs/ast': 1.11.1
'@webassemblyjs/wasm-edit': 1.11.1 '@webassemblyjs/wasm-edit': 1.11.1
'@webassemblyjs/wasm-parser': 1.11.1 '@webassemblyjs/wasm-parser': 1.11.1
acorn: 8.6.0 acorn: 8.8.0
acorn-import-assertions: 1.7.6_acorn@8.6.0 acorn-import-assertions: 1.7.6_acorn@8.8.0
browserslist: 4.20.2 browserslist: 4.20.2
chrome-trace-event: 1.0.2 chrome-trace-event: 1.0.2
enhanced-resolve: 5.9.3 enhanced-resolve: 5.10.0
es-module-lexer: 0.9.0 es-module-lexer: 0.9.0
eslint-scope: 5.1.1 eslint-scope: 5.1.1
events: 3.3.0 events: 3.3.0
...@@ -22378,7 +22383,7 @@ packages: ...@@ -22378,7 +22383,7 @@ packages:
neo-async: 2.6.2 neo-async: 2.6.2
schema-utils: 3.1.1 schema-utils: 3.1.1
tapable: 2.2.0 tapable: 2.2.0
terser-webpack-plugin: 5.2.4_webpack@5.73.0 terser-webpack-plugin: 5.2.4_webpack@5.74.0
watchpack: 2.4.0 watchpack: 2.4.0
webpack-sources: 3.2.3 webpack-sources: 3.2.3
transitivePeerDependencies: transitivePeerDependencies:
...@@ -22509,17 +22514,6 @@ packages: ...@@ -22509,17 +22514,6 @@ packages:
errno: 0.1.7 errno: 0.1.7
dev: true dev: true
/worker-loader/3.0.7_2opjno65lyt7hgwek6rdc5kfzu:
resolution: {integrity: sha512-LjYLuYJw6kqQKDoygpoD5vWeR1CbZjuVSW3/8pFsptMlUl8gatNM/pszhasSDAWt+dYxMipWB6695k+1zId+iQ==}
engines: {node: '>= 10.13.0'}
peerDependencies:
webpack: ^4.0.0 || ^5.0.0
dependencies:
loader-utils: 2.0.0
schema-utils: 3.1.1
webpack: link:node_modules/webpack5
dev: true
/wrap-ansi/3.0.1: /wrap-ansi/3.0.1:
resolution: {integrity: sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=} resolution: {integrity: sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=}
engines: {node: '>=4'} engines: {node: '>=4'}
...@@ -22547,7 +22541,7 @@ packages: ...@@ -22547,7 +22541,7 @@ packages:
dev: true dev: true
/wrappy/1.0.2: /wrappy/1.0.2:
resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=} resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
/write-file-atomic/2.4.3: /write-file-atomic/2.4.3:
resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==} resolution: {integrity: sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment