|
| 1 | +/* -------------------------------------------------------------------------- */ |
| 2 | +/* Imports */ |
| 3 | +/* -------------------------------------------------------------------------- */ |
| 4 | + |
| 5 | +import type { BuildConfig } from "bun"; |
| 6 | + |
1 | 7 | import dts from "bun-plugin-dts";
|
2 | 8 |
|
3 |
| -const entrypoints = ["./index.ts"]; |
4 |
| -const external = ["vue"]; |
5 |
| -const minify = true; |
6 |
| -const outdir = "./"; |
7 |
| -const plugins = [dts()]; |
| 9 | +/* -------------------------------------------------------------------------- */ |
| 10 | +/* Constants */ |
| 11 | +/* -------------------------------------------------------------------------- */ |
| 12 | + |
| 13 | +const minify: BuildConfig["minify"] = true; |
| 14 | + |
| 15 | +/* -------------------------------------------------------------------------- */ |
| 16 | + |
| 17 | +const outdir: BuildConfig["outdir"] = "./"; |
| 18 | + |
| 19 | +/* -------------------------------------------------------------------------- */ |
| 20 | +/* Arrays */ |
| 21 | +/* -------------------------------------------------------------------------- */ |
| 22 | + |
| 23 | +const entrypoints: BuildConfig["entrypoints"] = ["./index.ts"]; |
| 24 | + |
| 25 | +/* -------------------------------------------------------------------------- */ |
| 26 | + |
| 27 | +const external: BuildConfig["external"] = ["vue"]; |
| 28 | + |
| 29 | +/* -------------------------------------------------------------------------- */ |
| 30 | + |
| 31 | +const plugins: BuildConfig["plugins"] = [dts()]; |
| 32 | + |
| 33 | +/* -------------------------------------------------------------------------- */ |
| 34 | +/* Main */ |
| 35 | +/* -------------------------------------------------------------------------- */ |
| 36 | + |
8 | 37 | await Bun.build({ entrypoints, external, minify, outdir, plugins });
|
| 38 | + |
| 39 | +/* -------------------------------------------------------------------------- */ |
0 commit comments