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 @@
"turbo": "1.3.2-canary.1",
"typescript": "4.6.3",
"wait-port": "0.2.2",
"webpack": "link:node_modules/webpack5",
"webpack-bundle-analyzer": "4.3.0",
"worker-loader": "3.0.7"
"webpack": "link:packages/next/node_modules/webpack5",
"webpack-bundle-analyzer": "4.3.0"
},
"resolutions": {
"browserslist": "4.20.2",
......
This diff is collapsed.
......@@ -273,7 +273,7 @@
"webpack-sources1": "npm:webpack-sources@1.4.3",
"webpack-sources3": "npm:webpack-sources@3.2.3",
"webpack4": "npm:webpack@4.44.1",
"webpack5": "npm:webpack@5.73.0",
"webpack5": "npm:webpack@5.74.0",
"ws": "8.2.3"
},
"resolutions": {
......
......@@ -143,16 +143,17 @@ export async function createOriginalStackFrame({
compilation?: webpack.Compilation
}): Promise<OriginalStackFrameResponse | null> {
const moduleNotFound = findModuleNotFoundFromError(errorMessage)
const result = moduleNotFound
? findOriginalSourcePositionAndContentFromCompilation(
modulePath,
moduleNotFound,
compilation
)
: await findOriginalSourcePositionAndContent(source, {
line,
column,
})
const result =
moduleNotFound && compilation
? findOriginalSourcePositionAndContentFromCompilation(
modulePath,
moduleNotFound,
compilation
)
: await findOriginalSourcePositionAndContent(source, {
line,
column,
})
if (result === null) {
return null
......@@ -204,7 +205,7 @@ export async function createOriginalStackFrame({
export async function getSourceById(
isFile: boolean,
id: string,
compilation: webpack.Compilation
compilation?: webpack.Compilation
): Promise<Source> {
if (isFile) {
const fileContent: string | null = await fs
......@@ -228,7 +229,7 @@ export async function getSourceById(
}
try {
if (compilation == null) {
if (!compilation) {
return null
}
......
......@@ -162,9 +162,8 @@ importers:
turbo: 1.3.2-canary.1
typescript: 4.6.3
wait-port: 0.2.2
webpack: link:node_modules/webpack5
webpack: link:packages/next/node_modules/webpack5
webpack-bundle-analyzer: 4.3.0
worker-loader: 3.0.7
devDependencies:
'@babel/core': 7.18.0
'@babel/eslint-parser': 7.18.2_uxoojzahptggrua2tvdiqlh7xm
......@@ -316,9 +315,8 @@ importers:
turbo: 1.3.2-canary.1
typescript: 4.6.3
wait-port: 0.2.2
webpack: link:node_modules/webpack5
webpack: link:packages/next/node_modules/webpack5
webpack-bundle-analyzer: 4.3.0
worker-loader: 3.0.7_2opjno65lyt7hgwek6rdc5kfzu
packages/create-next-app:
specifiers:
......@@ -578,7 +576,7 @@ importers:
webpack-sources1: npm:webpack-sources@1.4.3
webpack-sources3: npm:webpack-sources@3.2.3
webpack4: npm:webpack@4.44.1
webpack5: npm:webpack@5.73.0
webpack5: npm:webpack@5.74.0
ws: 8.2.3
dependencies:
'@next/env': link:../next-env
......@@ -765,7 +763,7 @@ importers:
webpack-sources1: /webpack-sources/1.4.3
webpack-sources3: /webpack-sources/3.2.3
webpack4: /webpack/4.44.1
webpack5: /webpack/5.73.0
webpack5: /webpack/5.74.0
ws: 8.2.3
packages/next-bundle-analyzer:
......@@ -868,7 +866,7 @@ importers:
webpack: ^4 || ^5
devDependencies:
react-refresh: 0.12.0
webpack: 5.73.0
webpack: 5.74.0
packages:
......@@ -6532,12 +6530,12 @@ packages:
acorn-walk: 7.1.1
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==}
peerDependencies:
acorn: ^8
dependencies:
acorn: 8.6.0
acorn: 8.8.0
dev: true
/acorn-jsx/5.3.1_acorn@7.4.1:
......@@ -6586,6 +6584,12 @@ packages:
engines: {node: '>=0.4.0'}
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:
resolution: {integrity: sha512-qQLMr+8o0WC4FZGQTcJiKBVC59JylcPSrTtk6usvmIDFUOCKegapy1VHQwRbFMOFyb/inzUVqHs+eMYKDM1YeQ==}
dev: true
......@@ -10078,8 +10082,8 @@ packages:
tapable: 1.1.3
dev: true
/enhanced-resolve/5.9.3:
resolution: {integrity: sha512-Bq9VSor+kjvW3f9/MiiR4eE3XYgOl7/rS8lnSxbRbF3kS0B2r+Y9w5krBWxZgDxASVZbdYrn5wT4j/Wb0J9qow==}
/enhanced-resolve/5.10.0:
resolution: {integrity: sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ==}
engines: {node: '>=10.13.0'}
dependencies:
graceful-fs: 4.2.9
......@@ -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
dependencies:
eslint: 7.32.0
dev: false
/eslint-plugin-react/7.23.2_eslint@7.24.0:
resolution: {integrity: sha512-AfjgFQB+nYszudkxRkTFu0UR1zEQig0ArVMPloKhxwlwkzaw/fBiH0QWcBBhZONlXqQC51+nfqFrkn4EzHcGBw==}
......@@ -20916,7 +20921,7 @@ packages:
worker-farm: 1.7.0
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==}
engines: {node: '>= 10.13.0'}
peerDependencies:
......@@ -20938,7 +20943,7 @@ packages:
serialize-javascript: 6.0.0
source-map: 0.6.1
terser: 5.14.1
webpack: 5.73.0
webpack: 5.74.0
dev: true
/terser/4.8.0:
......@@ -20946,7 +20951,7 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
acorn: 8.6.0
acorn: 8.8.0
commander: 2.20.3
source-map: 0.6.1
source-map-support: 0.5.20
......@@ -20972,7 +20977,7 @@ packages:
hasBin: true
dependencies:
'@jridgewell/source-map': 0.3.2
acorn: 8.6.0
acorn: 8.8.0
commander: 2.20.3
source-map-support: 0.5.20
dev: true
......@@ -20982,7 +20987,7 @@ packages:
engines: {node: '>=10'}
hasBin: true
dependencies:
acorn: 8.6.0
acorn: 8.8.0
commander: 2.20.3
source-map: 0.7.3
source-map-support: 0.5.20
......@@ -21295,7 +21300,7 @@ packages:
typescript: 4.6.3
/tty-browserify/0.0.0:
resolution: {integrity: sha1-oVe6QC2iTpv5V/mqadUk7tQpAaY=}
resolution: {integrity: sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==}
dev: true
/tty-browserify/0.0.1:
......@@ -22347,8 +22352,8 @@ packages:
- supports-color
dev: true
/webpack/5.73.0:
resolution: {integrity: sha512-svjudQRPPa0YiOYa2lM/Gacw0r6PvxptHj4FuEKQ2kX05ZLkjbVc5MnPs6its5j7IZljnIqSVo/OsY2X0IpHGA==}
/webpack/5.74.0:
resolution: {integrity: sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA==}
engines: {node: '>=10.13.0'}
hasBin: true
peerDependencies:
......@@ -22362,11 +22367,11 @@ packages:
'@webassemblyjs/ast': 1.11.1
'@webassemblyjs/wasm-edit': 1.11.1
'@webassemblyjs/wasm-parser': 1.11.1
acorn: 8.6.0
acorn-import-assertions: 1.7.6_acorn@8.6.0
acorn: 8.8.0
acorn-import-assertions: 1.7.6_acorn@8.8.0
browserslist: 4.20.2
chrome-trace-event: 1.0.2
enhanced-resolve: 5.9.3
enhanced-resolve: 5.10.0
es-module-lexer: 0.9.0
eslint-scope: 5.1.1
events: 3.3.0
......@@ -22378,7 +22383,7 @@ packages:
neo-async: 2.6.2
schema-utils: 3.1.1
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
webpack-sources: 3.2.3
transitivePeerDependencies:
......@@ -22509,17 +22514,6 @@ packages:
errno: 0.1.7
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:
resolution: {integrity: sha1-KIoE2H7aXChuBg3+jxNc6NAH+Lo=}
engines: {node: '>=4'}
......@@ -22547,7 +22541,7 @@ packages:
dev: true
/wrappy/1.0.2:
resolution: {integrity: sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=}
resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==}
/write-file-atomic/2.4.3:
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