We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8f54d commit 95c5167Copy full SHA for 95c5167
scripts/src/plugins/rsbuild/measure-plugin.ts
@@ -26,7 +26,7 @@ export const measurePlugin = () => ({
26
const buildTime = performance.now() - beforeBuildTime;
27
metrics.buildColdBootTime = buildTime;
28
29
- const distDirectory = stats?.toJson().children[0].outputPath;
+ const distDirectory = api.context.distPath;
30
const files = glob.sync(join(distDirectory, '**', '*.{js,css,html}'));
31
const fileSizes: Record<string, number> = {};
32
const gzippedSizes: Record<string, number> = {};
0 commit comments