the description of the emitted file that is currently being processed/mutated by your callback function.
this is a class instance of ReducedMetafile that lets you search for any output file entity, either by their output path-key, or by their input sources' resolved-paths.
initialPath ?? outputPath for a given resource.{ namespace: string, path: string } returned by the source's onResolve stage.
this is your
onEmithook function that gets called, if the handler associated with it allows a certain result from anonLoadhook to pass through its filter (OnEmitOptions).if your return value is nullable (
nullorundefined), then the next matchingonEmithook function will try to mutate the finalized loaded/transformed contents. if no emit hook returns a non-nullable after all matches have been made, then the transformed contents from theonTransformhook will be passed to esbuild as is.moreover, if the returned value declares OnEmitResult.reEmit as
true, then the mutated emitted resource will once again pass through all registeredonEmithandlers.