You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: packages/babel-plugin-react-intl/README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,8 @@ If a message descriptor has a `description`, it'll be removed from the source af
61
61
62
62
-**`extractFromFormatMessageCall`**: Opt-in to extract from `intl.formatMessage` call with the same restrictions, e.g: has to be called with object literal such as `intl.formatMessage({ id: 'foo', defaultMessage: 'bar', description: 'baz'})`
63
63
64
+
-**`outputEmptyJson`**: output file with empty `[]` if src has no messages. For build systems like bazel that relies on specific output mapping, not writing out a file can cause issues.
65
+
64
66
### Via Node API
65
67
66
68
The extract message descriptors are available via the `metadata` property on the object returned from Babel's `transform()` API:
0 commit comments