File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -287,6 +287,7 @@ export interface BuildEnvironmentOptions {
287
287
name : string ,
288
288
config : ResolvedConfig ,
289
289
) => Promise < BuildEnvironment > | BuildEnvironment
290
+ enableBuildReport ?: boolean
290
291
}
291
292
292
293
export type BuildOptions = BuildEnvironmentOptions
@@ -395,6 +396,7 @@ export const buildEnvironmentOptionsDefaults = Object.freeze({
395
396
chunkSizeWarningLimit : 500 ,
396
397
watch : null ,
397
398
// createEnvironment
399
+ enableBuildReport : true ,
398
400
} )
399
401
400
402
export function resolveBuildEnvironmentOptions (
@@ -524,7 +526,9 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
524
526
} )
525
527
: manifestPlugin ( ) ,
526
528
ssrManifestPlugin ( ) ,
527
- buildReporterPlugin ( config ) ,
529
+ ...( config . build . enableBuildReport
530
+ ? [ buildReporterPlugin ( config ) ]
531
+ : [ ] ) ,
528
532
]
529
533
: [ ] ) ,
530
534
enableNativePlugin === true
You can’t perform that action at this time.
0 commit comments