Skip to content

Commit

Permalink
perf(create-vite): exclude transpiled prompts code
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Aug 28, 2022
1 parent b865430 commit c785eec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/create-vite/build.config.ts
Expand Up @@ -14,6 +14,10 @@ export default defineBuildConfig({
minify: true
}
},
alias: {
// we can always use non-transpiled code since we support 14.18.0+
prompts: 'prompts/lib/index.js'
},
hooks: {
'rollup:options'(ctx, options) {
options.plugins ||= []
Expand Down

0 comments on commit c785eec

Please sign in to comment.