Skip to content

Commit 89f36cd

Browse files
authored
fix: __INTLIFY_PROD_DEVTOOLS__ is not defined (#532)
closes #529
1 parent 90984fb commit 89f36cd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/core-base/src/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { getGlobalThis } from '@intlify/shared'
2+
13
export * from '@intlify/message-resolver'
24
export * from '@intlify/runtime'
35
export {
@@ -14,3 +16,9 @@ export { getWarnMessage, CoreWarnCodes } from './warnings'
1416
export { CoreError, CoreErrorCodes, createCoreError } from './errors'
1517
export * from './types'
1618
export * from './devtools'
19+
20+
if (__ESM_BUNDLER__ && !__TEST__) {
21+
if (typeof __FEATURE_PROD_INTLIFY_DEVTOOLS__ !== 'boolean') {
22+
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false
23+
}
24+
}

0 commit comments

Comments
 (0)