Skip to content

Commit 1ca365f

Browse files
authored
tweak runtime warning (#238)
1 parent e1867df commit 1ca365f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core-base/src/translate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export function translate<Messages, Message = string>(
291291
return unresolving ? NOT_REOSLVED : (key as MessageType<Message>)
292292
}
293293

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

0 commit comments

Comments
 (0)