Skip to content

Commit 542e05c

Browse files
committed
chore: disable respectExternal
1 parent 8e5f935 commit 542e05c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,15 @@ export default defineBuildConfig({
1010
declaration: !isAnalysingSize,
1111
failOnWarn: !isAnalysingSize,
1212
hooks: {
13-
'rollup:options': function (_, options) {
13+
'rollup:options': function (ctx, options) {
1414
const plugins = (options.plugins ||= []) as InputPluginOption[]
1515
plugins.push(purgePolyfills.rollup({
1616
logLevel: 'verbose',
1717
}))
1818
if (isAnalysingSize) {
1919
plugins.unshift(visualizer({ template: 'raw-data' }))
2020
}
21+
ctx.options.rollup.dts.respectExternal = false
2122
},
2223
},
2324
rollup: {

0 commit comments

Comments
 (0)