Type Alias: RolldownWatcherEvent
- Type: {
code:"START"; } | {code:"BUNDLE_START"; } | {code:"BUNDLE_END";duration:number;output: readonlystring[];result:RolldownWatchBuild; } | {code:"END"; } | {code:"ERROR";error:Error;result:RolldownWatchBuild; }
Defined in: api/watch/watch-emitter.ts:28
START: the watcher is (re)startingBUNDLE_START: building an individual bundleBUNDLE_END: finished building a bundleduration: the build duration in millisecondsoutput: an array of thefileordiroption values of the generated outputsresult: the bundle object that can be used to generate additional outputs. This is especially important when the watch.skipWrite option is used. You should callevent.result.close()once you are done generating outputs, or if you do not generate outputs. This will allow plugins to clean up resources via thecloseBundlehook.
END: finished building all bundlesERROR: encountered an error while bundlingerror: the error that was thrownresult: the bundle object