We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c860e46 commit 970e8e0Copy full SHA for 970e8e0
1 file changed
vite.config.ts
@@ -11,25 +11,16 @@ export default defineConfig({
11
formats: ["cjs"],
12
},
13
outDir: "dist",
14
+ target: "node20",
15
rollupOptions: {
16
+ // Externalize all node builtins and all dependencies
17
external: [
- "node:os",
- "node:path",
18
- "node:fs",
19
- "node:fs/promises",
20
- "node:constants",
21
- "node:child_process",
22
- "node:util",
23
- "date-fns",
24
- "date-fns/add",
25
- "date-fns/format",
26
- "date-fns/parseISO",
27
- "glob",
28
- "handlebars",
29
- "handlebars/runtime",
30
- "massarg",
31
- "massarg/command",
+ /^node:/, // Node builtins
+ /^[^./]/, // All bare imports (dependencies)
32
],
+ output: {
+ exports: "named",
+ },
33
34
sourcemap: true,
35
minify: false,
0 commit comments