Skip to content

Commit 2cb2e2c

Browse files
authored
improvement: deprecated __VUE_I18N_PROD_DEVTOOLS__ feature flag (#583)
* breaking: deprecated __VUE_I18N_PROD_DEVTOOLS__ feature flag * updates
1 parent 26ae817 commit 2cb2e2c

File tree

5 files changed

+1
-9
lines changed

5 files changed

+1
-9
lines changed

docs/guide/advanced/optimization.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ The `esm-bundler` builds now exposes global feature flags that can be overwritte
9393

9494
- `__VUE_I18N_FULL_INSTALL__` (enable/disable, in addition to vue-i18n APIs, components and directives all fully support installation: `true`)
9595
- `__VUE_I18N_LEGACY_API__` (enable/disable vue-i18n legacy style APIs support, default: `true`)
96-
- `__VUE_I18N_PROD_DEVTOOLS__` (enable/disable vue-devtools support in production, default: `false`)
9796
- `__INTLIFY_PROD_DEVTOOLS__` (enable/disable `@intlify/devtools` support in production, default: `false`)
9897

9998
:::warning NOTICE

packages/size-check-vue-i18n/rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const config = {
2828
__VUE_PROD_DEVTOOLS__: false,
2929
__VUE_I18N_LEGACY_API__: false,
3030
__VUE_I18N_FULL_INSTALL__: false,
31-
__VUE_I18N_PROD_DEVTOOLS__: false,
3231
__INTLIFY_PROD_DEVTOOLS__: false,
3332
'process.env.NODE_ENV': JSON.stringify('production')
3433
}),

packages/vue-i18n/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ The `esm-bundler` builds now exposes global feature flags that can be overwritte
5252

5353
- `__VUE_I18N_FULL_INSTALL__` (enable/disable, in addition to vue-i18n APIs, components and directives all fully support installation: `true`)
5454
- `__VUE_I18N_LEGACY_API__` (enable/disable vue-i18n legacy style APIs support, default: `true`)
55-
- `__VUE_I18N_PROD_DEVTOOLS__` (enable/disable vue-devtools support in production, default: `false`)
5655
- `__INTLIFY_PROD_DEVTOOLS__` (enable/disable `@intlify/devtools` support in production, default: `false`)
5756

5857
> NOTE: `__INTLIFY_PROD_DEVTOOLS__` flag is experimental, and `@intlify/devtools` is WIP yet.

packages/vue-i18n/src/misc.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ export function initFeatureFlags(): void {
2727
getGlobalThis().__VUE_I18N_LEGACY_API__ = true
2828
}
2929

30-
if (typeof __FEATURE_PROD_VUE_DEVTOOLS__ !== 'boolean') {
31-
needWarn = true
32-
getGlobalThis().__VUE_I18N_PROD_DEVTOOLS__ = false
33-
}
34-
3530
if (typeof __FEATURE_PROD_INTLIFY_DEVTOOLS__ !== 'boolean') {
3631
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false
3732
}

rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function createReplacePlugin(
230230
? `__VUE_I18N_LEGACY_API__`
231231
: true,
232232
__FEATURE_PROD_VUE_DEVTOOLS__: isBundlerESMBuild
233-
? `__VUE_I18N_PROD_DEVTOOLS__`
233+
? `__VUE_PROD_DEVTOOLS__`
234234
: false,
235235
__FEATURE_PROD_INTLIFY_DEVTOOLS__: isBundlerESMBuild
236236
? `__INTLIFY_PROD_DEVTOOLS__`

0 commit comments

Comments
 (0)