Skip to content

Commit c17d907

Browse files
committed
2 parents 05c4281 + 2f89e5e commit c17d907

File tree

3 files changed

+26
-103
lines changed

3 files changed

+26
-103
lines changed

.babelrc

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,50 @@
11
{
22
"presets": [
3-
"stage-1",
43
"flow",
54
"react"
65
],
76
"plugins": [
7+
"syntax-dynamic-import",
8+
"transform-class-properties",
9+
"transform-export-extensions",
810
"flow-react-proptypes"
911
],
1012
"env": {
1113
"test": {
1214
"presets": [
1315
["env", {"targets": {"node": "current"}}],
14-
"stage-1", "flow", "react"
16+
"flow", "react"
1517
],
1618
"plugins": [
19+
"syntax-dynamic-import",
20+
"transform-class-properties",
21+
"transform-export-extensions",
1722
"transform-runtime"
1823
]
1924
},
2025
"coverage": {
2126
"presets": [
2227
["env", {"targets": {"node": "current"}}],
23-
"stage-1", "flow", "react"
28+
"flow", "react"
2429
],
25-
"plugins": ["istanbul"]
30+
"plugins": [
31+
"syntax-dynamic-import",
32+
"transform-class-properties",
33+
"transform-export-extensions",
34+
"transform-runtime",
35+
"istanbul"
36+
]
2637
},
2738
"es5": {
2839
"presets": [
2940
["env", {"forceAllTransforms": true}],
30-
"stage-1", "flow", "react"
41+
"flow", "react"
3142
],
3243
"plugins": [
33-
"transform-runtime",
34-
"transform-react-constant-elements"
44+
"syntax-dynamic-import",
45+
"transform-class-properties",
46+
"transform-export-extensions",
47+
"transform-runtime"
3548
]
3649
},
3750
"production": {

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@
7474
"babel-preset-env": "^1.7.0",
7575
"babel-preset-flow": "^6.23.0",
7676
"babel-preset-react": "^6.16.0",
77-
"babel-preset-stage-1": "^6.24.1",
77+
"babel-plugin-syntax-dynamic-import": "^6.18.0",
78+
"babel-plugin-transform-class-properties": "^6.24.1",
79+
"babel-plugin-transform-export-extensions": "^6.22.0",
80+
"babel-plugin-transform-runtime": "^6.23.0",
7881
"babel-register": "^6.23.0",
7982
"babel-runtime": "^6.23.0",
8083
"chai": "^4.1.2",

yarn.lock

Lines changed: 2 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,6 @@ babel-generator@^6.18.0, babel-generator@^6.26.0:
615615
source-map "^0.5.6"
616616
trim-right "^1.0.1"
617617

618-
babel-helper-bindify-decorators@^6.24.1:
619-
version "6.24.1"
620-
resolved "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330"
621-
dependencies:
622-
babel-runtime "^6.22.0"
623-
babel-traverse "^6.24.1"
624-
babel-types "^6.24.1"
625-
626618
babel-helper-builder-binary-assignment-operator-visitor@^6.24.1:
627619
version "6.24.1"
628620
resolved "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664"
@@ -665,15 +657,6 @@ babel-helper-explode-assignable-expression@^6.24.1:
665657
babel-traverse "^6.24.1"
666658
babel-types "^6.24.1"
667659

668-
babel-helper-explode-class@^6.24.1:
669-
version "6.24.1"
670-
resolved "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb"
671-
dependencies:
672-
babel-helper-bindify-decorators "^6.24.1"
673-
babel-runtime "^6.22.0"
674-
babel-traverse "^6.24.1"
675-
babel-types "^6.24.1"
676-
677660
babel-helper-function-name@^6.24.1:
678661
version "6.24.1"
679662
resolved "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9"
@@ -774,22 +757,10 @@ babel-plugin-syntax-async-functions@^6.8.0:
774757
version "6.13.0"
775758
resolved "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
776759

777-
babel-plugin-syntax-async-generators@^6.5.0:
778-
version "6.13.0"
779-
resolved "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a"
780-
781-
babel-plugin-syntax-class-constructor-call@^6.18.0:
782-
version "6.18.0"
783-
resolved "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz#9cb9d39fe43c8600bec8146456ddcbd4e1a76416"
784-
785760
babel-plugin-syntax-class-properties@^6.8.0:
786761
version "6.13.0"
787762
resolved "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"
788763

789-
babel-plugin-syntax-decorators@^6.13.0:
790-
version "6.13.0"
791-
resolved "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b"
792-
793764
babel-plugin-syntax-dynamic-import@^6.18.0:
794765
version "6.18.0"
795766
resolved "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
@@ -810,38 +781,18 @@ babel-plugin-syntax-jsx@^6.3.13, babel-plugin-syntax-jsx@^6.8.0:
810781
version "6.18.0"
811782
resolved "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
812783

813-
babel-plugin-syntax-object-rest-spread@^6.8.0:
814-
version "6.13.0"
815-
resolved "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
816-
817784
babel-plugin-syntax-trailing-function-commas@^6.22.0:
818785
version "6.22.0"
819786
resolved "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3"
820787

821-
babel-plugin-transform-async-generator-functions@^6.24.1:
822-
version "6.24.1"
823-
resolved "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db"
824-
dependencies:
825-
babel-helper-remap-async-to-generator "^6.24.1"
826-
babel-plugin-syntax-async-generators "^6.5.0"
827-
babel-runtime "^6.22.0"
828-
829-
babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-to-generator@^6.24.1:
788+
babel-plugin-transform-async-to-generator@^6.22.0:
830789
version "6.24.1"
831790
resolved "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
832791
dependencies:
833792
babel-helper-remap-async-to-generator "^6.24.1"
834793
babel-plugin-syntax-async-functions "^6.8.0"
835794
babel-runtime "^6.22.0"
836795

837-
babel-plugin-transform-class-constructor-call@^6.24.1:
838-
version "6.24.1"
839-
resolved "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9"
840-
dependencies:
841-
babel-plugin-syntax-class-constructor-call "^6.18.0"
842-
babel-runtime "^6.22.0"
843-
babel-template "^6.24.1"
844-
845796
babel-plugin-transform-class-properties@^6.24.1:
846797
version "6.24.1"
847798
resolved "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
@@ -851,16 +802,6 @@ babel-plugin-transform-class-properties@^6.24.1:
851802
babel-runtime "^6.22.0"
852803
babel-template "^6.24.1"
853804

854-
babel-plugin-transform-decorators@^6.24.1:
855-
version "6.24.1"
856-
resolved "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d"
857-
dependencies:
858-
babel-helper-explode-class "^6.24.1"
859-
babel-plugin-syntax-decorators "^6.13.0"
860-
babel-runtime "^6.22.0"
861-
babel-template "^6.24.1"
862-
babel-types "^6.24.1"
863-
864805
babel-plugin-transform-es2015-arrow-functions@^6.22.0:
865806
version "6.22.0"
866807
resolved "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
@@ -1029,7 +970,7 @@ babel-plugin-transform-es2015-unicode-regex@^6.22.0:
1029970
babel-runtime "^6.22.0"
1030971
regexpu-core "^2.0.0"
1031972

1032-
babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1:
973+
babel-plugin-transform-exponentiation-operator@^6.22.0:
1033974
version "6.24.1"
1034975
resolved "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
1035976
dependencies:
@@ -1051,13 +992,6 @@ babel-plugin-transform-flow-strip-types@^6.22.0:
1051992
babel-plugin-syntax-flow "^6.18.0"
1052993
babel-runtime "^6.22.0"
1053994

1054-
babel-plugin-transform-object-rest-spread@^6.22.0:
1055-
version "6.26.0"
1056-
resolved "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06"
1057-
dependencies:
1058-
babel-plugin-syntax-object-rest-spread "^6.8.0"
1059-
babel-runtime "^6.26.0"
1060-
1061995
babel-plugin-transform-react-constant-elements@^6.9.1:
1062996
version "6.23.0"
1063997
resolved "https://registry.npmjs.org/babel-plugin-transform-react-constant-elements/-/babel-plugin-transform-react-constant-elements-6.23.0.tgz#2f119bf4d2cdd45eb9baaae574053c604f6147dd"
@@ -1206,33 +1140,6 @@ babel-preset-react@^6.16.0:
12061140
babel-plugin-transform-react-jsx-source "^6.22.0"
12071141
babel-preset-flow "^6.23.0"
12081142

1209-
babel-preset-stage-1@^6.24.1:
1210-
version "6.24.1"
1211-
resolved "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0"
1212-
dependencies:
1213-
babel-plugin-transform-class-constructor-call "^6.24.1"
1214-
babel-plugin-transform-export-extensions "^6.22.0"
1215-
babel-preset-stage-2 "^6.24.1"
1216-
1217-
babel-preset-stage-2@^6.24.1:
1218-
version "6.24.1"
1219-
resolved "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1"
1220-
dependencies:
1221-
babel-plugin-syntax-dynamic-import "^6.18.0"
1222-
babel-plugin-transform-class-properties "^6.24.1"
1223-
babel-plugin-transform-decorators "^6.24.1"
1224-
babel-preset-stage-3 "^6.24.1"
1225-
1226-
babel-preset-stage-3@^6.24.1:
1227-
version "6.24.1"
1228-
resolved "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395"
1229-
dependencies:
1230-
babel-plugin-syntax-trailing-function-commas "^6.22.0"
1231-
babel-plugin-transform-async-generator-functions "^6.24.1"
1232-
babel-plugin-transform-async-to-generator "^6.24.1"
1233-
babel-plugin-transform-exponentiation-operator "^6.24.1"
1234-
babel-plugin-transform-object-rest-spread "^6.22.0"
1235-
12361143
babel-register@^6.23.0, babel-register@^6.26.0:
12371144
version "6.26.0"
12381145
resolved "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071"

0 commit comments

Comments
 (0)