Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 26d93f2

Browse files
bj00rnredonkulus
authored andcommitted
update readme for babel 7 (#150)
1 parent 4a562ff commit 26d93f2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# babel-plugin-react-intl
22

33
Extracts string messages for translation from modules that use [React Intl][].
4+
## Dependencies
45

5-
_**Note:** This Babel plugin works with React Intl v2.x, and **1.x of this plugin works with Babel 5, 2.x works with Babel 6**._
6+
### React Intl
7+
This Babel plugin works with React Intl v2.x
8+
9+
### Babel
10+
- **3.x** of this plugin works with Babel 7
11+
- **2.x** works with Babel 6
12+
- **1.x** works with Babel 5
613

714
## Installation
815

@@ -47,7 +54,7 @@ If a message descriptor has a `description`, it'll be removed from the source af
4754
The extract message descriptors are available via the `metadata` property on the object returned from Babel's `transform()` API:
4855

4956
```javascript
50-
require('babel-core').transform('code', {
57+
require('@babel/core').transform('code', {
5158
plugins: ['react-intl']
5259
}) // => { code, map, ast, metadata['react-intl'].messages };
5360
```

0 commit comments

Comments
 (0)