Skip to content

Commit 9ef21a8

Browse files
committed
perf: setup build config
1 parent 588945e commit 9ef21a8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build.config.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { defineBuildConfig } from "unbuild";
2+
3+
export default defineBuildConfig({
4+
entries: ["src/index"],
5+
clean: true,
6+
rollup: {
7+
inlineDependencies: true,
8+
esbuild: {
9+
minify: true,
10+
},
11+
},
12+
alias: {
13+
// we can always use non-transpiled code since we support 14.18.0+
14+
prompts: "prompts/lib/index.js",
15+
},
16+
});

0 commit comments

Comments
 (0)