Skip to content

Commit cb9c159

Browse files
author
Jerry Bruwes
committed
modified: build.ts
1 parent dd1a36e commit cb9c159

File tree

1 file changed

+5
-31
lines changed

1 file changed

+5
-31
lines changed

build.ts

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,13 @@
1-
/* -------------------------------------------------------------------------- */
2-
/* Imports */
3-
/* -------------------------------------------------------------------------- */
4-
5-
import type { BuildConfig } from "bun";
6-
71
import dts from "bun-plugin-dts";
82

9-
/* -------------------------------------------------------------------------- */
10-
/* Constants */
113
/* -------------------------------------------------------------------------- */
124

13-
const minify: BuildConfig["minify"] = true;
5+
const entrypoints = ["./index.ts"],
6+
external = ["vue"],
7+
minify = true,
8+
outdir = "./",
9+
plugins = [dts()];
1410

1511
/* -------------------------------------------------------------------------- */
1612

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-
3713
await Bun.build({ entrypoints, external, minify, outdir, plugins });
38-
39-
/* -------------------------------------------------------------------------- */

0 commit comments

Comments
 (0)