File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -860,8 +860,7 @@ async function buildEnvironment(
860
860
prepareOutDir ( resolvedOutDirs , emptyOutDir , environment )
861
861
}
862
862
} else if ( event . code === 'BUNDLE_END' ) {
863
- // FIXME: https://github.com/rolldown/rolldown/issues/4380
864
- // event.result.close()
863
+ event . result . close ( )
865
864
logger . info ( colors . cyan ( `built in ${ event . duration } ms.` ) )
866
865
} else if ( event . code === 'ERROR' ) {
867
866
outputBuildError ( event . error )
Original file line number Diff line number Diff line change @@ -303,17 +303,14 @@ export async function notifyRebuildComplete(
303
303
const callback = ( event : RolldownWatcherEvent ) : void => {
304
304
if ( event . code === 'END' ) {
305
305
resolveFn ?.( )
306
- resolveFn = undefined // set to undefined instead of watcher.off for now
307
306
}
308
307
}
309
308
watcher . on ( 'event' , callback )
310
309
await new Promise < void > ( ( resolve ) => {
311
310
resolveFn = resolve
312
311
} )
313
312
314
- // TODO: not supported yet (https://github.com/rolldown/rolldown/issues/4382)
315
- // return watcher.off('event', callback)
316
- return watcher
313
+ return watcher . off ( 'event' , callback )
317
314
}
318
315
319
316
export function createInMemoryLogger ( logs : string [ ] ) : Logger {
You can’t perform that action at this time.
0 commit comments