Skip to content

Commit 3b4d45e

Browse files
remove __FEATURE_ESM_BUNDLER_WARN__ flag. (#514)
1 parent a14b772 commit 3b4d45e

File tree

5 files changed

+1
-12
lines changed

5 files changed

+1
-12
lines changed

jest.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,7 @@ module.exports = {
7272
__ESM_BROWSER__: false,
7373
__NODE_JS__: true,
7474
__FEATURE_FULL_INSTALL__: true,
75-
__FEATURE_LEGACY_API__: true,
76-
__FEATURE_ESM_BUNDLER_WARN__: true
75+
__FEATURE_LEGACY_API__: true
7776
},
7877

7978
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.

packages/global.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ declare let __FEATURE_PROD_VUE_DEVTOOLS__: boolean
1515
declare let __FEATURE_PROD_INTLIFY_DEVTOOLS__: boolean
1616
declare let __FEATURE_LEGACY_API__: boolean
1717
declare let __FEATURE_FULL_INSTALL__: boolean
18-
declare let __FEATURE_ESM_BUNDLER_WARN__: boolean
1918

2019
// for tests
2120
declare namespace jest {

packages/vue-i18n/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ The build will work without configuring these flags, however it is **strongly re
6565

6666
Note: the replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.
6767

68-
## Other Feature Flags
69-
70-
- `__FEATURE_ESM_BUNDLER_WARN__` (Suppress / Not suppress feature flags recommended warnings in build for `esm-bulder`)
71-
7268
## :copyright: License
7369

7470
[MIT](http://opensource.org/licenses/MIT)

packages/vue-i18n/src/misc.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ export function initFeatureFlags(): void {
3636
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false
3737
}
3838

39-
if (__DEV__ && typeof __FEATURE_ESM_BUNDLER_WARN__ === 'boolean') {
40-
needWarn = __FEATURE_ESM_BUNDLER_WARN__
41-
}
42-
4339
if (__DEV__ && needWarn) {
4440
console.warn(
4541
`You are running the esm-bundler build of vue-i18n. It is recommended to ` +

rollup.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ function createReplacePlugin(
235235
__FEATURE_PROD_INTLIFY_DEVTOOLS__: isBundlerESMBuild
236236
? `__INTLIFY_PROD_DEVTOOLS__`
237237
: false,
238-
__FEATURE_ESM_BUNDLER_WARN__: true,
239238
preventAssignment: false,
240239
...(isProduction && isBrowserBuild
241240
? {

0 commit comments

Comments
 (0)