File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
packages/vite/src/node/plugins Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,9 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin {
292
292
: { } ) ,
293
293
294
294
renderStart ( ) {
295
- chunksReporter ( this ) . reset ( )
295
+ if ( config . mode === 'production' ) {
296
+ chunksReporter ( this ) . reset ( )
297
+ }
296
298
} ,
297
299
298
300
renderChunk ( _ , chunk , options ) {
@@ -326,15 +328,19 @@ export function buildReporterPlugin(config: ResolvedConfig): Plugin {
326
328
}
327
329
}
328
330
329
- chunksReporter ( this ) . register ( )
331
+ if ( config . mode === 'production' ) {
332
+ chunksReporter ( this ) . register ( )
333
+ }
330
334
} ,
331
335
332
336
generateBundle ( ) {
333
337
if ( shouldLogInfo && tty ) clearLine ( )
334
338
} ,
335
339
336
340
async writeBundle ( { dir } , output ) {
337
- await chunksReporter ( this ) . log ( output , dir )
341
+ if ( config . mode === 'production' ) {
342
+ await chunksReporter ( this ) . log ( output , dir )
343
+ }
338
344
} ,
339
345
}
340
346
}
You can’t perform that action at this time.
0 commit comments