File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
packages/vue-i18n-core/src Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -15,29 +15,17 @@ export const VERSION = __VERSION__
15
15
* istanbul-ignore-next
16
16
*/
17
17
export function initFeatureFlags ( ) : void {
18
- let needWarn = false
19
-
20
18
if ( typeof __FEATURE_FULL_INSTALL__ !== 'boolean' ) {
21
- needWarn = true
22
19
getGlobalThis ( ) . __VUE_I18N_FULL_INSTALL__ = true
23
20
}
24
21
25
22
if ( typeof __FEATURE_LEGACY_API__ !== 'boolean' ) {
26
- needWarn = true
27
23
getGlobalThis ( ) . __VUE_I18N_LEGACY_API__ = true
28
24
}
29
25
30
26
if ( typeof __FEATURE_PROD_INTLIFY_DEVTOOLS__ !== 'boolean' ) {
31
27
getGlobalThis ( ) . __INTLIFY_PROD_DEVTOOLS__ = false
32
28
}
33
-
34
- if ( __DEV__ && needWarn ) {
35
- console . warn (
36
- `You are running the esm-bundler build of vue-i18n. It is recommended to ` +
37
- `configure your bundler to explicitly replace feature flag globals ` +
38
- `with boolean literals to get proper tree-shaking in the final bundle.`
39
- )
40
- }
41
29
}
42
30
43
31
/**
You can’t perform that action at this time.
0 commit comments