From c9688880be5e33a9116c11979ae2a291f8a49346 Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Sat, 2 May 2026 22:46:44 +0900 Subject: [PATCH] chore: migrate tsdown config --- tsdown.config.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tsdown.config.ts b/tsdown.config.ts index a17777f..5830249 100644 --- a/tsdown.config.ts +++ b/tsdown.config.ts @@ -6,10 +6,12 @@ export default defineConfig([ platform: 'neutral', target: 'es2015', dts: true, - external: (id, importer) => { - if (importer?.endsWith('node.ts') && id.startsWith('node:')) { - return true - } + deps: { + neverBundle(id, importer) { + if (importer?.endsWith('node.ts') && id.startsWith('node:')) { + return true + } + }, }, hash: false, minify: 'dce-only', -- 2.51.2