Skip to content

Commit

Permalink
tweak runtime warning (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon authored Dec 17, 2020
1 parent e1867df commit 1ca365f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core-base/src/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export function translate<Messages, Message = string>(
return unresolving ? NOT_REOSLVED : (key as MessageType<Message>)
}

if (__RUNTIME__ && isString(format) && context.messageCompiler == null) {
if (__DEV__ && isString(format) && context.messageCompiler == null) {
warn(
`Message format compilation is not supported in this build, because message compiler isn't included, you need to pre-compilation all message format.`
)
Expand Down

0 comments on commit 1ca365f

Please sign in to comment.