test/esbuild.ts

15 lines
260 B
TypeScript
Raw Normal View History

2022-12-22 12:50:12 +00:00
import {build} from "esbuild";
await build({
bundle: true,
entryPoints: ["source/index.ts"],
format: "esm",
logLevel: "info",
minify: true,
outdir: "build",
platform: "browser",
splitting: false,
target: ["es2022"],
treeShaking: true,
});