bun-plugin-strip
v0.1.4
Published
bun plugin for stripping debug functions at build time
Readme
bun-plugin-strip
A Bun plugin for stripping debug functions at build time.
Very similar in usage and functionality to @rollup/plugin-strip.
Usage
import { Strip } from "bun-plugin-strip";
await Bun.build({
// ...
plugins: [
Strip({
include: ["**/*.ts"],
exclude: ["**/*.test.ts"],
functions: ["console.*", "myModule.foo"],
})
],
// ...
});Installation
bun add bun-plugin-stripLicense
This project is licensed under the MIT license.
