Contents of the docs
esbuild-plugin-clear · Docs
Installation
Install esbuild-plugin-clear via npm, requirements for Node.js and esbuild.
On this page
You only need the plugin at build time, so add it as a dev dependency.
Install the package
npm i -D esbuild-plugin-clearThe plugin does not ship esbuild. If it is missing:
npm i -D esbuildRequirements
| What | Version | Why |
|---|---|---|
| Node.js | 14.14 or later | The plugin deletes with fs.rmSync, available since 14.14 |
| esbuild | with plugin API | Tested with 0.28; only onStart is used |
Note
The package is pure ESM with a single default export. Write your build script as .mjs or set "type": "module"
in your package.json.