From ca73db964b56205d43aa798e10d5c5bb5c4ea847 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 3 Aug 2022 16:14:31 +0200 Subject: [PATCH] fix(ie): completely skip devtools in dev for IE Fix #1440 --- packages/pinia/src/createPinia.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pinia/src/createPinia.ts b/packages/pinia/src/createPinia.ts index f105460e..8279b4e9 100644 --- a/packages/pinia/src/createPinia.ts +++ b/packages/pinia/src/createPinia.ts @@ -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) } -- 2.47.3