path

Ppath
Bun

Symbol

OnLoadArgs.path

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" };
});