File tree Expand file tree Collapse file tree 3 files changed +16
-14
lines changed Expand file tree Collapse file tree 3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -78,17 +78,17 @@ export { vTDirective, TranslationDirective } from './directive'
78
78
export { I18nPluginOptions } from './plugin'
79
79
export { VERSION } from './misc'
80
80
81
+ if ( __ESM_BUNDLER__ && ! __TEST__ ) {
82
+ initFeatureFlags ( )
83
+ }
84
+
81
85
// NOTE: experimental !!
82
86
if ( __DEV__ || __FEATURE_PROD_INTLIFY_DEVTOOLS__ ) {
83
87
const target = getGlobalThis ( )
84
88
target . __INTLIFY__ = true
85
89
setDevToolsHook ( target . __INTLIFY_DEVTOOLS_GLOBAL_HOOK__ )
86
90
}
87
91
88
- if ( __ESM_BUNDLER__ && ! __TEST__ ) {
89
- initFeatureFlags ( )
90
- }
91
-
92
- if ( __DEV__ || __FEATURE_PROD_VUE_DEVTOOLS__ ) {
92
+ if ( __DEV__ ) {
93
93
initDev ( )
94
94
}
Original file line number Diff line number Diff line change @@ -55,9 +55,11 @@ export function initFeatureFlags(): void {
55
55
*/
56
56
export function initDev ( ) : void {
57
57
if ( __BROWSER__ ) {
58
- console . info (
59
- `You are running a development build of vue-i18n.\n` +
60
- `Make sure to use the production build (*.prod.js) when deploying for production.`
61
- )
58
+ if ( ! __ESM_BUNDLER__ ) {
59
+ console . info (
60
+ `You are running a development build of vue-i18n.\n` +
61
+ `Make sure to use the production build (*.prod.js) when deploying for production.`
62
+ )
63
+ }
62
64
}
63
65
}
Original file line number Diff line number Diff line change @@ -73,17 +73,17 @@ export { vTDirective, TranslationDirective } from './directive'
73
73
export { I18nPluginOptions } from './plugin'
74
74
export { VERSION } from './misc'
75
75
76
+ if ( __ESM_BUNDLER__ && ! __TEST__ ) {
77
+ initFeatureFlags ( )
78
+ }
79
+
76
80
// NOTE: experimental !!
77
81
if ( __DEV__ || __FEATURE_PROD_INTLIFY_DEVTOOLS__ ) {
78
82
const target = getGlobalThis ( )
79
83
target . __INTLIFY__ = true
80
84
setDevToolsHook ( target . __INTLIFY_DEVTOOLS_GLOBAL_HOOK__ )
81
85
}
82
86
83
- if ( __ESM_BUNDLER__ && ! __TEST__ ) {
84
- initFeatureFlags ( )
85
- }
86
-
87
- if ( __DEV__ && __FEATURE_PROD_VUE_DEVTOOLS__ ) {
87
+ if ( __DEV__ ) {
88
88
initDev ( )
89
89
}
You can’t perform that action at this time.
0 commit comments