Skip to content

Commit b8d6afa

Browse files
committed
refactor: replace individual node builtins with builtinModules
1 parent 70c03b7 commit b8d6afa

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/create-mcp-kit/rolldown.config.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import terser from '@rollup/plugin-terser'
2-
import { defineConfig } from 'rolldown'
32
import typescript from '@rollup/plugin-typescript'
3+
import { defineConfig } from 'rolldown'
44

55
const isProd = process.env.NODE_ENV === 'production'
66
const isDev = process.env.NODE_ENV === 'local'
@@ -14,11 +14,8 @@ export default defineConfig({
1414
},
1515
plugins: [isProd && terser(), typescript()],
1616
external: [
17-
'path',
18-
'url',
19-
'fs/promises',
20-
'timers/promises',
21-
'child_process',
17+
...builtinModules,
18+
...builtinModules.map(m => `node:${m}`),
2219
'@clack/prompts',
2320
'picocolors',
2421
'handlebars',

0 commit comments

Comments
 (0)