]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
fix(ie): completely skip devtools in dev for IE
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 3 Aug 2022 14:14:31 +0000 (16:14 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 3 Aug 2022 14:14:31 +0000 (16:14 +0200)
Fix #1440

packages/pinia/src/createPinia.ts

index f105460e504a0949e886e68cb86324666dc6af0a..8279b4e9e51b2b3a6c7ae494a616e47916c52f06 100644 (file)
@@ -57,8 +57,8 @@ export function createPinia(): Pinia {
 
   // pinia devtools rely on dev only features so they cannot be forced unless
   // the dev build of Vue is used
-  // We also don't need devtools in test mode
-  if (__DEV__ && IS_CLIENT && !__TEST__) {
+  // We also don't need devtools in test mode or anywhere where Proxy isn't supported (like IE)
+  if (__DEV__ && IS_CLIENT && !__TEST__ && typeof Proxy !== 'undefined') {
     pinia.use(devtoolsPlugin)
   }