@@ -180,7 +180,6 @@ export class FullBundleDevEnvironment extends DevEnvironment {
180
180
// TODO: need to check if this is enough
181
181
this . handleHmrOutput ( [ m . path ] , update , {
182
182
firstInvalidatedBy : m . firstInvalidatedBy ,
183
- reason : m . message ,
184
183
} )
185
184
} ) ( )
186
185
}
@@ -243,6 +242,10 @@ export class FullBundleDevEnvironment extends DevEnvironment {
243
242
output . assetFileNames = 'assets/[name]-[hash][extname]'
244
243
output . minify = false
245
244
output . sourcemap = true
245
+ // output.advancedChunks ||= {}
246
+ // output.advancedChunks.groups = [
247
+ // { name: 'chunk', maxSize: 1024 * 1024 },
248
+ // ]
246
249
}
247
250
} else {
248
251
rolldownOptions . output ??= { }
@@ -251,27 +254,30 @@ export class FullBundleDevEnvironment extends DevEnvironment {
251
254
rolldownOptions . output . assetFileNames = 'assets/[name]-[hash][extname]'
252
255
rolldownOptions . output . minify = false
253
256
rolldownOptions . output . sourcemap = true
257
+ // rolldownOptions.output.advancedChunks ||= {}
258
+ // rolldownOptions.output.advancedChunks.groups = [
259
+ // { name: 'chunk', maxSize: 1024 * 1024 },
260
+ // ]
254
261
}
262
+ // rolldownOptions.experimental.strictExecutionOrder = true
255
263
256
264
return rolldownOptions
257
265
}
258
266
259
267
private handleHmrOutput (
260
268
files : string [ ] ,
261
269
hmrOutput : HmrOutput ,
262
- invalidateInformation ?: { firstInvalidatedBy : string ; reason ?: string } ,
270
+ invalidateInformation ?: { firstInvalidatedBy : string } ,
263
271
) {
264
272
if ( hmrOutput . type === 'Noop' ) return
265
273
266
274
const shortFile = files
267
275
. map ( ( file ) => getShortName ( file , this . config . root ) )
268
276
. join ( ', ' )
269
277
if ( hmrOutput . type === 'FullReload' ) {
270
- const reason =
271
- ( hmrOutput . reason ? colors . dim ( ` (${ hmrOutput . reason } )` ) : '' ) +
272
- ( invalidateInformation ?. reason
273
- ? colors . dim ( ` (${ invalidateInformation . reason } )` )
274
- : '' )
278
+ const reason = hmrOutput . reason
279
+ ? colors . dim ( ` (${ hmrOutput . reason } )` )
280
+ : ''
275
281
this . logger . info (
276
282
colors . green ( `trigger page reload ` ) + colors . dim ( shortFile ) + reason ,
277
283
{ clear : ! invalidateInformation , timestamp : true } ,
0 commit comments