Skip to content

Commit 892d40e

Browse files
use static analysis (codesandbox#3875)
1 parent 3e0393c commit 892d40e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/app/config/webpack.prod.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ module.exports = merge(commonConfig, {
107107
},
108108

109109
plugins: [
110-
process.env.ANALYZE && new BundleAnalyzerPlugin(),
110+
process.env.ANALYZE &&
111+
new BundleAnalyzerPlugin({
112+
analyzerMode: 'static',
113+
}),
111114
new webpack.DefinePlugin({ VERSION: JSON.stringify(VERSION) }),
112115
// Generate a service worker script that will precache, and keep up to date,
113116
// the HTML & assets that are part of the Webpack build.

0 commit comments

Comments
 (0)