We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
respectExternal
1 parent 8e5f935 commit 542e05cCopy full SHA for 542e05c
build.config.ts
@@ -10,14 +10,15 @@ export default defineBuildConfig({
10
declaration: !isAnalysingSize,
11
failOnWarn: !isAnalysingSize,
12
hooks: {
13
- 'rollup:options': function (_, options) {
+ 'rollup:options': function (ctx, options) {
14
const plugins = (options.plugins ||= []) as InputPluginOption[]
15
plugins.push(purgePolyfills.rollup({
16
logLevel: 'verbose',
17
}))
18
if (isAnalysingSize) {
19
plugins.unshift(visualizer({ template: 'raw-data' }))
20
}
21
+ ctx.options.rollup.dts.respectExternal = false
22
},
23
24
rollup: {
0 commit comments