Skip to content

Commit ca73db9

Browse files
committed
fix(ie): completely skip devtools in dev for IE
Fix #1440
1 parent ccfd3d1 commit ca73db9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/pinia/src/createPinia.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ export function createPinia(): Pinia {
5757

5858
// pinia devtools rely on dev only features so they cannot be forced unless
5959
// the dev build of Vue is used
60-
// We also don't need devtools in test mode
61-
if (__DEV__ && IS_CLIENT && !__TEST__) {
60+
// We also don't need devtools in test mode or anywhere where Proxy isn't supported (like IE)
61+
if (__DEV__ && IS_CLIENT && !__TEST__ && typeof Proxy !== 'undefined') {
6262
pinia.use(devtoolsPlugin)
6363
}
6464

0 commit comments

Comments
 (0)