Skip to content

Commit 480057e

Browse files
committed
perf(create-vite): exclude transpiled prompts code
This reduces bundled code: 355kB => 188kB
1 parent b120264 commit 480057e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/create-vite/build.config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export default defineBuildConfig({
1111
minify: true
1212
}
1313
},
14+
alias: {
15+
// we can always use non-transpiled code since we support 14.18.0+
16+
prompts: 'prompts/lib/index.js'
17+
},
1418
hooks: {
1519
'rollup:options'(ctx, options) {
1620
options.plugins ??= []

0 commit comments

Comments
 (0)