Skip to content

Commit 95c5167

Browse files
authored
fix: rsbuild dist path (#56)
1 parent 7e8f54d commit 95c5167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/src/plugins/rsbuild/measure-plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const measurePlugin = () => ({
2626
const buildTime = performance.now() - beforeBuildTime;
2727
metrics.buildColdBootTime = buildTime;
2828

29-
const distDirectory = stats?.toJson().children[0].outputPath;
29+
const distDirectory = api.context.distPath;
3030
const files = glob.sync(join(distDirectory, '**', '*.{js,css,html}'));
3131
const fileSizes: Record<string, number> = {};
3232
const gzippedSizes: Record<string, number> = {};

0 commit comments

Comments
 (0)