]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
build: always externalize @vue/devtools-api
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 12 Feb 2025 10:42:03 +0000 (11:42 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 12 Feb 2025 10:42:03 +0000 (11:42 +0100)
rollup.config.mjs

index c29aca1918e4a673ba87f023f3544d5a5ec39eda..0d8f921da0aa63917d009b8b6e599524a1b89e4f 100644 (file)
@@ -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()]