Unverified Commit b180beca authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Update bundle analyzer dependency and output (#42797)

* Update `webpack-bundle-analyzer` to 4.7.0
* Change the output file paths of bundle analyzing results to
`./next/analyze/<nodejs|edge|client>.html`
parent 5e965bc9
......@@ -208,7 +208,7 @@
"typescript": "4.8.2",
"wait-port": "0.2.2",
"webpack": "5.74.0",
"webpack-bundle-analyzer": "4.3.0"
"webpack-bundle-analyzer": "4.7.0"
},
"resolutions": {
"browserslist": "4.20.2",
......
......@@ -9,9 +9,11 @@ module.exports =
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer,
reportFilename: options.isServer
? '../analyze/server.html'
: './analyze/client.html',
reportFilename: !options.nextRuntime
? `./analyze/client.html`
: `../${options.nextRuntime === 'nodejs' ? '../' : ''}analyze/${
options.nextRuntime
}.html`,
})
)
}
......
......@@ -9,6 +9,6 @@
"directory": "packages/next-bundle-analyzer"
},
"dependencies": {
"webpack-bundle-analyzer": "4.3.0"
"webpack-bundle-analyzer": "4.7.0"
}
}
......@@ -173,7 +173,7 @@ importers:
typescript: 4.8.2
wait-port: 0.2.2
webpack: 5.74.0
webpack-bundle-analyzer: 4.3.0
webpack-bundle-analyzer: 4.7.0
devDependencies:
'@babel/core': 7.18.0
'@babel/eslint-parser': 7.18.2_uxoojzahptggrua2tvdiqlh7xm
......@@ -336,7 +336,7 @@ importers:
typescript: 4.8.2
wait-port: 0.2.2
webpack: 5.74.0_@swc+core@1.2.203
webpack-bundle-analyzer: 4.3.0
webpack-bundle-analyzer: 4.7.0
bench/vercel:
specifiers:
......@@ -844,9 +844,9 @@ importers:
packages/next-bundle-analyzer:
specifiers:
webpack-bundle-analyzer: 4.3.0
webpack-bundle-analyzer: 4.7.0
dependencies:
webpack-bundle-analyzer: 4.3.0
webpack-bundle-analyzer: 4.7.0
packages/next-codemod:
specifiers:
......@@ -7853,11 +7853,6 @@ packages:
hasBin: true
dev: true
/acorn/8.6.0:
resolution: {integrity: sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==}
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'}
......@@ -9761,10 +9756,6 @@ packages:
engines: {node: '>= 6'}
dev: true
/commander/6.2.1:
resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==}
engines: {node: '>= 6'}
/commander/7.2.0:
resolution: {integrity: sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==}
engines: {node: '>= 10'}
......@@ -23601,15 +23592,15 @@ packages:
engines: {node: '>=10.4'}
dev: true
/webpack-bundle-analyzer/4.3.0:
resolution: {integrity: sha512-J3TPm54bPARx6QG8z4cKBszahnUglcv70+N+8gUqv2I5KOFHJbzBiLx+pAp606so0X004fxM7hqRu10MLjJifA==}
/webpack-bundle-analyzer/4.6.1:
resolution: {integrity: sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==}
engines: {node: '>= 10.13.0'}
hasBin: true
dependencies:
acorn: 8.6.0
acorn: 8.8.0
acorn-walk: 8.0.0
chalk: 4.1.2
commander: 6.2.1
commander: 7.2.0
gzip-size: 6.0.0
lodash: 4.17.21
opener: 1.5.2
......@@ -23618,9 +23609,10 @@ packages:
transitivePeerDependencies:
- bufferutil
- utf-8-validate
dev: false
/webpack-bundle-analyzer/4.6.1:
resolution: {integrity: sha512-oKz9Oz9j3rUciLNfpGFjOb49/jEpXNmWdVH8Ls//zNcnLlQdTGXQQMsBbb/gR7Zl8WNLxVCq+0Hqbx3zv6twBw==}
/webpack-bundle-analyzer/4.7.0:
resolution: {integrity: sha512-j9b8ynpJS4K+zfO5GGwsAcQX4ZHpWV+yRiHDiL+bE0XHJ8NiPYLTNVQdlFYWxtpg9lfAQNlwJg16J9AJtFSXRg==}
engines: {node: '>= 10.13.0'}
hasBin: true
dependencies:
......@@ -23636,7 +23628,6 @@ packages:
transitivePeerDependencies:
- bufferutil
- utf-8-validate
dev: false
/webpack-sources/1.4.3:
resolution: {integrity: sha512-lgTS3Xhv1lCOKo7SA5TjKXMjpSM4sBjNV5+q2bqesbSPs5FjGmU6jjtBSkX9b4qW87vDIsCIlUPOEhbZrMdjeQ==}
......
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