Skip to content

Commit 704122f

Browse files
authored
improvement: remove feature flag warning (#1140)
1 parent 4e5ca61 commit 704122f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

packages/vue-i18n-core/src/misc.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,17 @@ export const VERSION = __VERSION__
1515
* istanbul-ignore-next
1616
*/
1717
export function initFeatureFlags(): void {
18-
let needWarn = false
19-
2018
if (typeof __FEATURE_FULL_INSTALL__ !== 'boolean') {
21-
needWarn = true
2219
getGlobalThis().__VUE_I18N_FULL_INSTALL__ = true
2320
}
2421

2522
if (typeof __FEATURE_LEGACY_API__ !== 'boolean') {
26-
needWarn = true
2723
getGlobalThis().__VUE_I18N_LEGACY_API__ = true
2824
}
2925

3026
if (typeof __FEATURE_PROD_INTLIFY_DEVTOOLS__ !== 'boolean') {
3127
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false
3228
}
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-
}
4129
}
4230

4331
/**

0 commit comments

Comments
 (0)