File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ export interface BuildEnvironmentOptions {
273
273
name : string ,
274
274
config : ResolvedConfig ,
275
275
) => Promise < BuildEnvironment > | BuildEnvironment
276
+ enableBuildReport ?: boolean
276
277
}
277
278
278
279
export type BuildOptions = BuildEnvironmentOptions
@@ -385,6 +386,7 @@ export function resolveBuildEnvironmentOptions(
385
386
emitAssets : consumer === 'client' ,
386
387
reportCompressedSize : true ,
387
388
chunkSizeWarningLimit : 500 ,
389
+ enableBuildReport : true ,
388
390
// watch: null,
389
391
createEnvironment : ( name , config ) => new BuildEnvironment ( name , config ) ,
390
392
}
@@ -463,6 +465,7 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
463
465
post : RolldownPlugin [ ]
464
466
} > {
465
467
const enableNativePlugin = config . experimental . enableNativePlugin
468
+ const enableBuildReport = config . build . enableBuildReport
466
469
// TODO: support commonjs options?
467
470
return {
468
471
pre : [
@@ -497,7 +500,7 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
497
500
nativeManifestPlugin ( )
498
501
: manifestPlugin ( ) ,
499
502
ssrManifestPlugin ( ) ,
500
- buildReporterPlugin ( config ) ,
503
+ ... ( enableBuildReport ? [ buildReporterPlugin ( config ) ] : [ ] ) ,
501
504
]
502
505
: [ ] ) ,
503
506
enableNativePlugin
You can’t perform that action at this time.
0 commit comments