Skip to content

Commit

Permalink
build: always externalize @vue/devtools-api
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 12, 2025
1 parent e3b5f6d commit 9c54e2a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,7 @@ function createConfig(buildName, output, plugins = []) {
// during a single build.
hasTSChecked = true

const external = ['vue']
if (
!isGlobalBuild &&
// pinia.prod.cjs should not require `@vue/devtools-api` (like Vue)
!(isProductionBuild && isNodeBuild)
) {
external.push('@vue/devtools-api')
}
const external = ['vue', '@vue/devtools-api']

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

Expand Down

0 comments on commit 9c54e2a

Please sign in to comment.