Skip to main content
The API is small on purpose. Anything else is internal, whatever a build output happens to contain.

The root entry

Reach for it when one options object feeds more than one bundler:
Its .vite, .rolldown, .rollup, .rspack and .webpack are the same plugins the subpaths export.
The root entry also carries unplugin’s own .esbuild, .farm, .unloader, .rsbuild, .bun and .raw, which are not supported. .esbuild fails outright: the plugin registers its watch list before it compiles, and unplugin’s esbuild context throws on that, so it writes nothing even for a one-shot build. Nothing tests the others.

CommonJS

The package ships ES modules only, and Node serves a require() of it through require(esm), which hands back the module namespace. Take the plugin from .default:
webpack.config.cjs