Skip to content

Commit 4371541

Browse files
committed
build: fix es5 build config
1 parent 2f89e5e commit 4371541

File tree

3 files changed

+97
-12
lines changed

3 files changed

+97
-12
lines changed

.babelrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@
1414
"flow"
1515
],
1616
"plugins": [
17-
"syntax-dynamic-import",
18-
"transform-class-properties",
19-
"transform-export-extensions",
2017
"transform-runtime"
2118
]
2219
},
@@ -26,22 +23,16 @@
2623
"flow"
2724
],
2825
"plugins": [
29-
"syntax-dynamic-import",
30-
"transform-class-properties",
31-
"transform-export-extensions",
3226
"transform-runtime",
3327
"istanbul"
3428
]
3529
},
3630
"es5": {
3731
"presets": [
3832
["env", {"forceAllTransforms": true}],
39-
"flow"
33+
"stage-1", "flow"
4034
],
4135
"plugins": [
42-
"syntax-dynamic-import",
43-
"transform-class-properties",
44-
"transform-export-extensions",
4536
"transform-runtime"
4637
]
4738
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"babel-plugin-transform-runtime": "^6.23.0",
7070
"babel-preset-env": "^1.7.0",
7171
"babel-preset-flow": "^6.23.0",
72+
"babel-preset-stage-1": "^6.24.1",
7273
"babel-register": "^6.23.0",
7374
"babel-runtime": "^6.23.0",
7475
"chai": "^4.1.2",

yarn.lock

Lines changed: 95 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,14 @@ babel-generator@^6.18.0, babel-generator@^6.26.0:
539539
source-map "^0.5.6"
540540
trim-right "^1.0.1"
541541

542+
babel-helper-bindify-decorators@^6.24.1:
543+
version "6.24.1"
544+
resolved "https://registry.npmjs.org/babel-helper-bindify-decorators/-/babel-helper-bindify-decorators-6.24.1.tgz#14c19e5f142d7b47f19a52431e52b1ccbc40a330"
545+
dependencies:
546+
babel-runtime "^6.22.0"
547+
babel-traverse "^6.24.1"
548+
babel-types "^6.24.1"
549+
542550
babel-helper-builder-binary-assignment-operator-visitor@^6.24.1:
543551
version "6.24.1"
544552
resolved "https://registry.npmjs.org/babel-helper-builder-binary-assignment-operator-visitor/-/babel-helper-builder-binary-assignment-operator-visitor-6.24.1.tgz#cce4517ada356f4220bcae8a02c2b346f9a56664"
@@ -573,6 +581,15 @@ babel-helper-explode-assignable-expression@^6.24.1:
573581
babel-traverse "^6.24.1"
574582
babel-types "^6.24.1"
575583

584+
babel-helper-explode-class@^6.24.1:
585+
version "6.24.1"
586+
resolved "https://registry.npmjs.org/babel-helper-explode-class/-/babel-helper-explode-class-6.24.1.tgz#7dc2a3910dee007056e1e31d640ced3d54eaa9eb"
587+
dependencies:
588+
babel-helper-bindify-decorators "^6.24.1"
589+
babel-runtime "^6.22.0"
590+
babel-traverse "^6.24.1"
591+
babel-types "^6.24.1"
592+
576593
babel-helper-function-name@^6.24.1:
577594
version "6.24.1"
578595
resolved "https://registry.npmjs.org/babel-helper-function-name/-/babel-helper-function-name-6.24.1.tgz#d3475b8c03ed98242a25b48351ab18399d3580a9"
@@ -664,10 +681,22 @@ babel-plugin-syntax-async-functions@^6.8.0:
664681
version "6.13.0"
665682
resolved "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
666683

684+
babel-plugin-syntax-async-generators@^6.5.0:
685+
version "6.13.0"
686+
resolved "https://registry.npmjs.org/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a"
687+
688+
babel-plugin-syntax-class-constructor-call@^6.18.0:
689+
version "6.18.0"
690+
resolved "https://registry.npmjs.org/babel-plugin-syntax-class-constructor-call/-/babel-plugin-syntax-class-constructor-call-6.18.0.tgz#9cb9d39fe43c8600bec8146456ddcbd4e1a76416"
691+
667692
babel-plugin-syntax-class-properties@^6.8.0:
668693
version "6.13.0"
669694
resolved "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"
670695

696+
babel-plugin-syntax-decorators@^6.13.0:
697+
version "6.13.0"
698+
resolved "https://registry.npmjs.org/babel-plugin-syntax-decorators/-/babel-plugin-syntax-decorators-6.13.0.tgz#312563b4dbde3cc806cee3e416cceeaddd11ac0b"
699+
671700
babel-plugin-syntax-dynamic-import@^6.18.0:
672701
version "6.18.0"
673702
resolved "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
@@ -684,18 +713,38 @@ babel-plugin-syntax-flow@^6.18.0:
684713
version "6.18.0"
685714
resolved "https://registry.npmjs.org/babel-plugin-syntax-flow/-/babel-plugin-syntax-flow-6.18.0.tgz#4c3ab20a2af26aa20cd25995c398c4eb70310c8d"
686715

716+
babel-plugin-syntax-object-rest-spread@^6.8.0:
717+
version "6.13.0"
718+
resolved "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
719+
687720
babel-plugin-syntax-trailing-function-commas@^6.22.0:
688721
version "6.22.0"
689722
resolved "https://registry.npmjs.org/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.22.0.tgz#ba0360937f8d06e40180a43fe0d5616fff532cf3"
690723

691-
babel-plugin-transform-async-to-generator@^6.22.0:
724+
babel-plugin-transform-async-generator-functions@^6.24.1:
725+
version "6.24.1"
726+
resolved "https://registry.npmjs.org/babel-plugin-transform-async-generator-functions/-/babel-plugin-transform-async-generator-functions-6.24.1.tgz#f058900145fd3e9907a6ddf28da59f215258a5db"
727+
dependencies:
728+
babel-helper-remap-async-to-generator "^6.24.1"
729+
babel-plugin-syntax-async-generators "^6.5.0"
730+
babel-runtime "^6.22.0"
731+
732+
babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-to-generator@^6.24.1:
692733
version "6.24.1"
693734
resolved "https://registry.npmjs.org/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
694735
dependencies:
695736
babel-helper-remap-async-to-generator "^6.24.1"
696737
babel-plugin-syntax-async-functions "^6.8.0"
697738
babel-runtime "^6.22.0"
698739

740+
babel-plugin-transform-class-constructor-call@^6.24.1:
741+
version "6.24.1"
742+
resolved "https://registry.npmjs.org/babel-plugin-transform-class-constructor-call/-/babel-plugin-transform-class-constructor-call-6.24.1.tgz#80dc285505ac067dcb8d6c65e2f6f11ab7765ef9"
743+
dependencies:
744+
babel-plugin-syntax-class-constructor-call "^6.18.0"
745+
babel-runtime "^6.22.0"
746+
babel-template "^6.24.1"
747+
699748
babel-plugin-transform-class-properties@^6.24.1:
700749
version "6.24.1"
701750
resolved "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
@@ -705,6 +754,16 @@ babel-plugin-transform-class-properties@^6.24.1:
705754
babel-runtime "^6.22.0"
706755
babel-template "^6.24.1"
707756

757+
babel-plugin-transform-decorators@^6.24.1:
758+
version "6.24.1"
759+
resolved "https://registry.npmjs.org/babel-plugin-transform-decorators/-/babel-plugin-transform-decorators-6.24.1.tgz#788013d8f8c6b5222bdf7b344390dfd77569e24d"
760+
dependencies:
761+
babel-helper-explode-class "^6.24.1"
762+
babel-plugin-syntax-decorators "^6.13.0"
763+
babel-runtime "^6.22.0"
764+
babel-template "^6.24.1"
765+
babel-types "^6.24.1"
766+
708767
babel-plugin-transform-es2015-arrow-functions@^6.22.0:
709768
version "6.22.0"
710769
resolved "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
@@ -873,7 +932,7 @@ babel-plugin-transform-es2015-unicode-regex@^6.22.0:
873932
babel-runtime "^6.22.0"
874933
regexpu-core "^2.0.0"
875934

876-
babel-plugin-transform-exponentiation-operator@^6.22.0:
935+
babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1:
877936
version "6.24.1"
878937
resolved "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
879938
dependencies:
@@ -895,6 +954,13 @@ babel-plugin-transform-flow-strip-types@^6.22.0:
895954
babel-plugin-syntax-flow "^6.18.0"
896955
babel-runtime "^6.22.0"
897956

957+
babel-plugin-transform-object-rest-spread@^6.22.0:
958+
version "6.26.0"
959+
resolved "https://registry.npmjs.org/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06"
960+
dependencies:
961+
babel-plugin-syntax-object-rest-spread "^6.8.0"
962+
babel-runtime "^6.26.0"
963+
898964
babel-plugin-transform-regenerator@^6.22.0:
899965
version "6.26.0"
900966
resolved "https://registry.npmjs.org/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f"
@@ -998,6 +1064,33 @@ babel-preset-flow@^6.23.0:
9981064
dependencies:
9991065
babel-plugin-transform-flow-strip-types "^6.22.0"
10001066

1067+
babel-preset-stage-1@^6.24.1:
1068+
version "6.24.1"
1069+
resolved "https://registry.npmjs.org/babel-preset-stage-1/-/babel-preset-stage-1-6.24.1.tgz#7692cd7dcd6849907e6ae4a0a85589cfb9e2bfb0"
1070+
dependencies:
1071+
babel-plugin-transform-class-constructor-call "^6.24.1"
1072+
babel-plugin-transform-export-extensions "^6.22.0"
1073+
babel-preset-stage-2 "^6.24.1"
1074+
1075+
babel-preset-stage-2@^6.24.1:
1076+
version "6.24.1"
1077+
resolved "https://registry.npmjs.org/babel-preset-stage-2/-/babel-preset-stage-2-6.24.1.tgz#d9e2960fb3d71187f0e64eec62bc07767219bdc1"
1078+
dependencies:
1079+
babel-plugin-syntax-dynamic-import "^6.18.0"
1080+
babel-plugin-transform-class-properties "^6.24.1"
1081+
babel-plugin-transform-decorators "^6.24.1"
1082+
babel-preset-stage-3 "^6.24.1"
1083+
1084+
babel-preset-stage-3@^6.24.1:
1085+
version "6.24.1"
1086+
resolved "https://registry.npmjs.org/babel-preset-stage-3/-/babel-preset-stage-3-6.24.1.tgz#836ada0a9e7a7fa37cb138fb9326f87934a48395"
1087+
dependencies:
1088+
babel-plugin-syntax-trailing-function-commas "^6.22.0"
1089+
babel-plugin-transform-async-generator-functions "^6.24.1"
1090+
babel-plugin-transform-async-to-generator "^6.24.1"
1091+
babel-plugin-transform-exponentiation-operator "^6.24.1"
1092+
babel-plugin-transform-object-rest-spread "^6.22.0"
1093+
10011094
babel-register@^6.23.0, babel-register@^6.26.0:
10021095
version "6.26.0"
10031096
resolved "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz#6ed021173e2fcb486d7acb45c6009a856f647071"

0 commit comments

Comments
 (0)