Skip to content

Commit c785eec

Browse files
committed
perf(create-vite): exclude transpiled prompts code
1 parent b865430 commit c785eec

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
@@ -14,6 +14,10 @@ export default defineBuildConfig({
1414
minify: true
1515
}
1616
},
17+
alias: {
18+
// we can always use non-transpiled code since we support 14.18.0+
19+
prompts: 'prompts/lib/index.js'
20+
},
1721
hooks: {
1822
'rollup:options'(ctx, options) {
1923
options.plugins ||= []

0 commit comments

Comments
 (0)