Skip to content

Commit

Permalink
build: reduce the size of cjs by making inquirer deps as external
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwcx committed Jun 26, 2024
1 parent 14e2563 commit bae2aee
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fast-owls-camp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'inquirer-select-pro': patch
---

make @inquirer/core as external dep which can reduce the size of cjs
3 changes: 2 additions & 1 deletion tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export default defineConfig([
entry: ['src/index.ts'],
format: ['cjs'],
platform: 'node',
noExternal: [/(.*)/],
noExternal: [/^((?!(@inquirer\/core|@inquirer\/type)).)*$/],
external: ['@inquirer/core', '@inquirer/type'],
dts: true,
sourcemap: true,
},
Expand Down

0 comments on commit bae2aee

Please sign in to comment.