diff --git a/src/builder/rollup.ts b/src/builder/rollup.ts index ce965c45..b0baf08b 100644 --- a/src/builder/rollup.ts +++ b/src/builder/rollup.ts @@ -46,7 +46,9 @@ export async function rollupBuild (ctx: BuildContext) { // Types rollupOptions.plugins = rollupOptions.plugins || [] - rollupOptions.plugins.push(dts()) + rollupOptions.plugins.push(dts({ + respectExternal: true + })) const typesBuild = await rollup(rollupOptions) await typesBuild.write({ dir: resolve(ctx.rootDir, ctx.outDir),