Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit39b107e

Browse files
SanichKotikovlonglho
authored andcommitted
Fixedfile.log.warn issue (#159)
1 parent6d364b0 commit39b107e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/index.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ export default function ({types: t}) {
224224
constname=path.get('name');
225225

226226
if(name.referencesImport(moduleSourceName,'FormattedPlural')){
227-
file.log.warn(
227+
constwarn=file.log ?file.log.warn :console.warn;
228+
warn(
228229
`[React Intl] Line${path.node.loc.start.line}: `+
229230
'Default messages are not extracted from '+
230231
'<FormattedPlural>, use <FormattedMessage> instead.'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp