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.

Commitc2e6e73

Browse files
author
Long Ho
committed
add additionalComponentNames option,fixes#138
1 parenta09b7fe commitc2e6e73

File tree

6 files changed

+135
-2114
lines changed

6 files changed

+135
-2114
lines changed

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ If a message descriptor has a `description`, it'll be removed from the source af
5555

5656
-**`removeDefaultMessage`**: Remove`defaultMessage` field in generated js after extraction.
5757

58+
-**`additionalComponentNames`**: Additional component names to extract messages from, e.g:`['FormattedFooBarMessage']`.**NOTE**: By default we check for the fact that`FormattedMessage` &`FormattedHTMLMessage` are imported from`moduleSourceName` to make sure variable alias works. This option does not do that so it's less safe.
59+
5860
###Via Node API
5961

6062
The extract message descriptors are available via the`metadata` property on the object returned from Babel's`transform()` API:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp