Skip to content

Commit

Permalink
fix: __INTLIFY_PROD_DEVTOOLS__ is not defined (#532) (#570)
Browse files Browse the repository at this point in the history
closes #529
  • Loading branch information
kazupon committed Jul 13, 2021
1 parent 092014d commit 2262e05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core-base/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { getGlobalThis } from '@intlify/shared'

export * from '@intlify/message-resolver'
export * from '@intlify/runtime'
export {
Expand All @@ -14,3 +16,9 @@ export { getWarnMessage, CoreWarnCodes } from './warnings'
export { CoreError, CoreErrorCodes, createCoreError } from './errors'
export * from './types'
export * from './devtools'

if (__ESM_BUNDLER__ && !__TEST__) {
if (typeof __FEATURE_PROD_INTLIFY_DEVTOOLS__ !== 'boolean') {
getGlobalThis().__INTLIFY_PROD_DEVTOOLS__ = false
}
}

0 comments on commit 2262e05

Please sign in to comment.