Skip to content

Commit

Permalink
fix(rollup): set respectExternal option for dts
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 9, 2021
1 parent dfcdb7b commit a596fa3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/builder/rollup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit a596fa3

Please sign in to comment.