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.

Commit26d93f2

Browse files
bj00rnredonkulus
authored andcommitted
update readme for babel 7 (#150)
1 parent4a562ff commit26d93f2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎README.md‎

Lines changed: 9 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp