We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 095fed7 commit 502792aCopy full SHA for 502792a
tsup.config.ts
@@ -61,10 +61,12 @@ export default defineConfig({
61
splitting: false,
62
sourcemap: false,
63
bundle: true,
64
- // Don't bundle node_modules, keep them external
65
- // This regex matches any import that doesn't start with . or / or our aliases
+ // Keep ONLY node_modules external (everything from node_modules)
66
external: [
67
- /^(?!@(api|config|utils|cache|libs|validate|exceptions))[^.\/]/,
+ /^(?!\.{1,2}\/)/, // Everything that doesn't start with ./ or ../
+ ],
68
+ noExternal: [
69
+ /^@(api|config|utils|cache|libs|validate|exceptions)/, // Bundle our own code
70
],
71
tsconfig: './tsconfig.json',
72
esbuildPlugins: [pathResolverPlugin],
0 commit comments