File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 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 (
@@ -522,7 +524,9 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
522
524
} )
523
525
: manifestPlugin ( ) ,
524
526
ssrManifestPlugin ( ) ,
525
- buildReporterPlugin ( config ) ,
527
+ ...( config . build . enableBuildReport
528
+ ? [ buildReporterPlugin ( config ) ]
529
+ : [ ] ) ,
526
530
]
527
531
: [ ] ) ,
528
532
enableNativePlugin === true
You can’t perform that action at this time.
0 commit comments