Builder is a thin wrapper around ESBuild's cli that lets you define a declarative build config with dev server.
pnpm i @benstack/builder
Create an {esbuild|build|builder}.config.{ts|js}
file in your root directory.
import { defineConfig } from "@benstack/builder"
// typeof esbuild.BuildOptions
export default defineConfig({
entryPoints: ["src/mod.ts"],
outdir: "dist",
target: "esm",
bundle: "true"
})
Run pnpm builder
for a production build or pnpm builder --dev
for an auto-reloading dev server.
Made with 💛
Published under MIT License.