Skip to content

Commit 9c54e2a

Browse files
committed
build: always externalize @vue/devtools-api
1 parent e3b5f6d commit 9c54e2a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

rollup.config.mjs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,7 @@ function createConfig(buildName, output, plugins = []) {
125125
// during a single build.
126126
hasTSChecked = true
127127

128-
const external = ['vue']
129-
if (
130-
!isGlobalBuild &&
131-
// pinia.prod.cjs should not require `@vue/devtools-api` (like Vue)
132-
!(isProductionBuild && isNodeBuild)
133-
) {
134-
external.push('@vue/devtools-api')
135-
}
128+
const external = ['vue', '@vue/devtools-api']
136129

137130
const nodePlugins = [nodeResolve(), commonjs()]
138131

0 commit comments

Comments
 (0)