From 4c149636d95a2a65d77662df1420c75b5313c8d2 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Tue, 16 May 2023 15:27:54 +0200 Subject: [PATCH] fix(webpack): analyze report path --- packages/webpack/src/configs/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/configs/client.ts b/packages/webpack/src/configs/client.ts index 1f1147ce1d90..b2591164f22c 100644 --- a/packages/webpack/src/configs/client.ts +++ b/packages/webpack/src/configs/client.ts @@ -86,7 +86,7 @@ function clientPlugins (ctx: WebpackConfigContext) { // webpack Bundle Analyzer // https://github.com/webpack-contrib/webpack-bundle-analyzer if (!ctx.isDev && ctx.name === 'client' && options.webpack.analyze) { - const statsDir = resolve(options.buildDir, 'stats') + const statsDir = resolve(options.analyzeDir) config.plugins!.push(new BundleAnalyzerPlugin({ analyzerMode: 'static',