Defer the execution of this callback until all other modules have been parsed.
Symbol
OnLoadArgs
interface OnLoadArgs
- path: string
The resolved import specifier of the module being loaded
builder.onLoad({ filter: /^hello:world$/ }, (args) => { console.log(args.path); // "hello:world" return { exports: { foo: "bar" }, loader: "object" }; });