Skip to content

Commit ad06af4

Browse files
committed
Use .babelrc from react-native
1 parent a693a43 commit ad06af4

File tree

2 files changed

+53
-3
lines changed

2 files changed

+53
-3
lines changed

.babelrc

+28-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
11
{
2-
"presets": ["stage-0", "es2015"]
2+
"retainLines": true,
3+
"compact": true,
4+
"comments": false,
5+
"plugins": [
6+
"syntax-async-functions",
7+
"syntax-class-properties",
8+
"syntax-trailing-function-commas",
9+
"transform-class-properties",
10+
"transform-es2015-arrow-functions",
11+
"transform-es2015-block-scoping",
12+
"transform-es2015-classes",
13+
"transform-es2015-computed-properties",
14+
"transform-es2015-constants",
15+
"transform-es2015-destructuring",
16+
["transform-es2015-modules-commonjs", {"strict": false, "allowTopLevelThis": true}],
17+
"transform-es2015-parameters",
18+
"transform-es2015-shorthand-properties",
19+
"transform-es2015-spread",
20+
"transform-es2015-template-literals",
21+
"transform-flow-strip-types",
22+
"transform-object-assign",
23+
"transform-object-rest-spread",
24+
"transform-react-display-name",
25+
"transform-react-jsx",
26+
"transform-regenerator",
27+
"transform-es2015-for-of"
28+
],
29+
"sourceMaps": false
330
}

package.json

+25-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,31 @@
2525
"devDependencies": {
2626
"babel": "^6.3.13",
2727
"babel-eslint": "^4.1.4",
28-
"babel-preset-es2015": "^6.3.13",
29-
"babel-preset-stage-0": "^6.3.13",
28+
"babel-plugin-external-helpers-2": "^6.1.4",
29+
"babel-plugin-syntax-async-functions": "^6.0.14",
30+
"babel-plugin-syntax-class-properties": "^6.0.14",
31+
"babel-plugin-syntax-flow": "^6.0.14",
32+
"babel-plugin-syntax-jsx": "^6.0.14",
33+
"babel-plugin-syntax-trailing-function-commas": "^6.0.14",
34+
"babel-plugin-transform-class-properties": "^6.0.14",
35+
"babel-plugin-transform-es2015-arrow-functions": "^6.0.14",
36+
"babel-plugin-transform-es2015-block-scoping": "^6.0.18",
37+
"babel-plugin-transform-es2015-classes": "^6.1.2",
38+
"babel-plugin-transform-es2015-computed-properties": "^6.0.14",
39+
"babel-plugin-transform-es2015-constants": "^6.0.15",
40+
"babel-plugin-transform-es2015-destructuring": "^6.0.18",
41+
"babel-plugin-transform-es2015-for-of": "^6.0.14",
42+
"babel-plugin-transform-es2015-modules-commonjs": "^6.1.3",
43+
"babel-plugin-transform-es2015-parameters": "^6.0.18",
44+
"babel-plugin-transform-es2015-shorthand-properties": "^6.0.14",
45+
"babel-plugin-transform-es2015-spread": "^6.0.14",
46+
"babel-plugin-transform-es2015-template-literals": "^6.0.14",
47+
"babel-plugin-transform-flow-strip-types": "^6.0.14",
48+
"babel-plugin-transform-object-assign": "^6.0.14",
49+
"babel-plugin-transform-object-rest-spread": "^6.0.14",
50+
"babel-plugin-transform-react-display-name": "^6.0.14",
51+
"babel-plugin-transform-react-jsx": "^6.0.18",
52+
"babel-plugin-transform-regenerator": "^6.0.18",
3053
"babel-register": "^6.3.13",
3154
"chai": "^3.4.0",
3255
"eslint": "^1.8.0",

0 commit comments

Comments
 (0)