Skip to content

Commit

Permalink
fix: suppress console for devtools flag (#404)
Browse files Browse the repository at this point in the history
* fix: cannot fallback at tm /

* fix: init devtools in production
  • Loading branch information
kazupon committed Mar 19, 2021
1 parent 57ac0c0 commit 5cae796
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion packages/vue-i18n/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ if (__ESM_BUNDLER__ && !__TEST__) {
initFeatureFlags()
}

__DEV__ && initDev()
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
initDev()
}
4 changes: 3 additions & 1 deletion packages/vue-i18n/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,6 @@ if (__ESM_BUNDLER__ && !__TEST__) {
initFeatureFlags()
}

__DEV__ && initDev()
if (__DEV__ && __FEATURE_PROD_DEVTOOLS__) {
initDev()
}

0 comments on commit 5cae796

Please sign in to comment.