Skip to content

Commit 1c19c88

Browse files
committed
add babel env
1 parent 3b55ac6 commit 1c19c88

File tree

3 files changed

+72
-20
lines changed

3 files changed

+72
-20
lines changed

.babelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"presets": [
3+
"env",
34
"react",
45
"flow",
56
"stage-0"

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"babel-core": "^6.14.0",
2222
"babel-eslint": "^8.2.2",
2323
"babel-loader": "^7.1.3",
24+
"babel-preset-env": "^1.6.1",
2425
"babel-preset-flow": "^6.23.0",
2526
"babel-preset-react": "^6.24.1",
2627
"babel-preset-stage-0": "^6.24.1",

yarn.lock

Lines changed: 70 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ babel-plugin-transform-async-generator-functions@^6.24.1:
786786
babel-plugin-syntax-async-generators "^6.5.0"
787787
babel-runtime "^6.22.0"
788788

789-
babel-plugin-transform-async-to-generator@^6.24.1:
789+
babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-to-generator@^6.24.1:
790790
version "6.24.1"
791791
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
792792
dependencies:
@@ -840,7 +840,7 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.22.0:
840840
dependencies:
841841
babel-runtime "^6.22.0"
842842

843-
babel-plugin-transform-es2015-block-scoping@^6.24.1:
843+
babel-plugin-transform-es2015-block-scoping@^6.23.0, babel-plugin-transform-es2015-block-scoping@^6.24.1:
844844
version "6.26.0"
845845
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f"
846846
dependencies:
@@ -850,7 +850,7 @@ babel-plugin-transform-es2015-block-scoping@^6.24.1:
850850
babel-types "^6.26.0"
851851
lodash "^4.17.4"
852852

853-
babel-plugin-transform-es2015-classes@^6.24.1:
853+
babel-plugin-transform-es2015-classes@^6.23.0, babel-plugin-transform-es2015-classes@^6.24.1:
854854
version "6.24.1"
855855
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
856856
dependencies:
@@ -864,33 +864,33 @@ babel-plugin-transform-es2015-classes@^6.24.1:
864864
babel-traverse "^6.24.1"
865865
babel-types "^6.24.1"
866866

867-
babel-plugin-transform-es2015-computed-properties@^6.24.1:
867+
babel-plugin-transform-es2015-computed-properties@^6.22.0, babel-plugin-transform-es2015-computed-properties@^6.24.1:
868868
version "6.24.1"
869869
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3"
870870
dependencies:
871871
babel-runtime "^6.22.0"
872872
babel-template "^6.24.1"
873873

874-
babel-plugin-transform-es2015-destructuring@^6.22.0:
874+
babel-plugin-transform-es2015-destructuring@^6.22.0, babel-plugin-transform-es2015-destructuring@^6.23.0:
875875
version "6.23.0"
876876
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d"
877877
dependencies:
878878
babel-runtime "^6.22.0"
879879

880-
babel-plugin-transform-es2015-duplicate-keys@^6.24.1:
880+
babel-plugin-transform-es2015-duplicate-keys@^6.22.0, babel-plugin-transform-es2015-duplicate-keys@^6.24.1:
881881
version "6.24.1"
882882
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e"
883883
dependencies:
884884
babel-runtime "^6.22.0"
885885
babel-types "^6.24.1"
886886

887-
babel-plugin-transform-es2015-for-of@^6.22.0:
887+
babel-plugin-transform-es2015-for-of@^6.22.0, babel-plugin-transform-es2015-for-of@^6.23.0:
888888
version "6.23.0"
889889
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691"
890890
dependencies:
891891
babel-runtime "^6.22.0"
892892

893-
babel-plugin-transform-es2015-function-name@^6.24.1:
893+
babel-plugin-transform-es2015-function-name@^6.22.0, babel-plugin-transform-es2015-function-name@^6.24.1:
894894
version "6.24.1"
895895
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b"
896896
dependencies:
@@ -904,15 +904,15 @@ babel-plugin-transform-es2015-literals@^6.22.0:
904904
dependencies:
905905
babel-runtime "^6.22.0"
906906

907-
babel-plugin-transform-es2015-modules-amd@^6.24.1:
907+
babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1:
908908
version "6.24.1"
909909
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154"
910910
dependencies:
911911
babel-plugin-transform-es2015-modules-commonjs "^6.24.1"
912912
babel-runtime "^6.22.0"
913913
babel-template "^6.24.1"
914914

915-
babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
915+
babel-plugin-transform-es2015-modules-commonjs@^6.23.0, babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
916916
version "6.26.0"
917917
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
918918
dependencies:
@@ -921,30 +921,30 @@ babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
921921
babel-template "^6.26.0"
922922
babel-types "^6.26.0"
923923

924-
babel-plugin-transform-es2015-modules-systemjs@^6.24.1:
924+
babel-plugin-transform-es2015-modules-systemjs@^6.23.0, babel-plugin-transform-es2015-modules-systemjs@^6.24.1:
925925
version "6.24.1"
926926
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23"
927927
dependencies:
928928
babel-helper-hoist-variables "^6.24.1"
929929
babel-runtime "^6.22.0"
930930
babel-template "^6.24.1"
931931

932-
babel-plugin-transform-es2015-modules-umd@^6.24.1:
932+
babel-plugin-transform-es2015-modules-umd@^6.23.0, babel-plugin-transform-es2015-modules-umd@^6.24.1:
933933
version "6.24.1"
934934
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468"
935935
dependencies:
936936
babel-plugin-transform-es2015-modules-amd "^6.24.1"
937937
babel-runtime "^6.22.0"
938938
babel-template "^6.24.1"
939939

940-
babel-plugin-transform-es2015-object-super@^6.24.1:
940+
babel-plugin-transform-es2015-object-super@^6.22.0, babel-plugin-transform-es2015-object-super@^6.24.1:
941941
version "6.24.1"
942942
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d"
943943
dependencies:
944944
babel-helper-replace-supers "^6.24.1"
945945
babel-runtime "^6.22.0"
946946

947-
babel-plugin-transform-es2015-parameters@^6.24.1:
947+
babel-plugin-transform-es2015-parameters@^6.23.0, babel-plugin-transform-es2015-parameters@^6.24.1:
948948
version "6.24.1"
949949
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b"
950950
dependencies:
@@ -955,7 +955,7 @@ babel-plugin-transform-es2015-parameters@^6.24.1:
955955
babel-traverse "^6.24.1"
956956
babel-types "^6.24.1"
957957

958-
babel-plugin-transform-es2015-shorthand-properties@^6.24.1:
958+
babel-plugin-transform-es2015-shorthand-properties@^6.22.0, babel-plugin-transform-es2015-shorthand-properties@^6.24.1:
959959
version "6.24.1"
960960
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0"
961961
dependencies:
@@ -968,7 +968,7 @@ babel-plugin-transform-es2015-spread@^6.22.0:
968968
dependencies:
969969
babel-runtime "^6.22.0"
970970

971-
babel-plugin-transform-es2015-sticky-regex@^6.24.1:
971+
babel-plugin-transform-es2015-sticky-regex@^6.22.0, babel-plugin-transform-es2015-sticky-regex@^6.24.1:
972972
version "6.24.1"
973973
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc"
974974
dependencies:
@@ -982,21 +982,21 @@ babel-plugin-transform-es2015-template-literals@^6.22.0:
982982
dependencies:
983983
babel-runtime "^6.22.0"
984984

985-
babel-plugin-transform-es2015-typeof-symbol@^6.22.0:
985+
babel-plugin-transform-es2015-typeof-symbol@^6.22.0, babel-plugin-transform-es2015-typeof-symbol@^6.23.0:
986986
version "6.23.0"
987987
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372"
988988
dependencies:
989989
babel-runtime "^6.22.0"
990990

991-
babel-plugin-transform-es2015-unicode-regex@^6.24.1:
991+
babel-plugin-transform-es2015-unicode-regex@^6.22.0, babel-plugin-transform-es2015-unicode-regex@^6.24.1:
992992
version "6.24.1"
993993
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9"
994994
dependencies:
995995
babel-helper-regex "^6.24.1"
996996
babel-runtime "^6.22.0"
997997
regexpu-core "^2.0.0"
998998

999-
babel-plugin-transform-exponentiation-operator@^6.24.1:
999+
babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1:
10001000
version "6.24.1"
10011001
resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
10021002
dependencies:
@@ -1060,7 +1060,7 @@ babel-plugin-transform-react-jsx@^6.24.1:
10601060
babel-plugin-syntax-jsx "^6.8.0"
10611061
babel-runtime "^6.22.0"
10621062

1063-
babel-plugin-transform-regenerator@^6.24.1:
1063+
babel-plugin-transform-regenerator@^6.22.0, babel-plugin-transform-regenerator@^6.24.1:
10641064
version "6.26.0"
10651065
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f"
10661066
dependencies:
@@ -1089,6 +1089,41 @@ babel-polyfill@^6.26.0:
10891089
core-js "^2.5.0"
10901090
regenerator-runtime "^0.10.5"
10911091

1092+
babel-preset-env@^1.6.1:
1093+
version "1.6.1"
1094+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.1.tgz#a18b564cc9b9afdf4aae57ae3c1b0d99188e6f48"
1095+
dependencies:
1096+
babel-plugin-check-es2015-constants "^6.22.0"
1097+
babel-plugin-syntax-trailing-function-commas "^6.22.0"
1098+
babel-plugin-transform-async-to-generator "^6.22.0"
1099+
babel-plugin-transform-es2015-arrow-functions "^6.22.0"
1100+
babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
1101+
babel-plugin-transform-es2015-block-scoping "^6.23.0"
1102+
babel-plugin-transform-es2015-classes "^6.23.0"
1103+
babel-plugin-transform-es2015-computed-properties "^6.22.0"
1104+
babel-plugin-transform-es2015-destructuring "^6.23.0"
1105+
babel-plugin-transform-es2015-duplicate-keys "^6.22.0"
1106+
babel-plugin-transform-es2015-for-of "^6.23.0"
1107+
babel-plugin-transform-es2015-function-name "^6.22.0"
1108+
babel-plugin-transform-es2015-literals "^6.22.0"
1109+
babel-plugin-transform-es2015-modules-amd "^6.22.0"
1110+
babel-plugin-transform-es2015-modules-commonjs "^6.23.0"
1111+
babel-plugin-transform-es2015-modules-systemjs "^6.23.0"
1112+
babel-plugin-transform-es2015-modules-umd "^6.23.0"
1113+
babel-plugin-transform-es2015-object-super "^6.22.0"
1114+
babel-plugin-transform-es2015-parameters "^6.23.0"
1115+
babel-plugin-transform-es2015-shorthand-properties "^6.22.0"
1116+
babel-plugin-transform-es2015-spread "^6.22.0"
1117+
babel-plugin-transform-es2015-sticky-regex "^6.22.0"
1118+
babel-plugin-transform-es2015-template-literals "^6.22.0"
1119+
babel-plugin-transform-es2015-typeof-symbol "^6.23.0"
1120+
babel-plugin-transform-es2015-unicode-regex "^6.22.0"
1121+
babel-plugin-transform-exponentiation-operator "^6.22.0"
1122+
babel-plugin-transform-regenerator "^6.22.0"
1123+
browserslist "^2.1.2"
1124+
invariant "^2.2.2"
1125+
semver "^5.3.0"
1126+
10921127
babel-preset-es2015@^6.9.0:
10931128
version "6.24.1"
10941129
resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939"
@@ -1454,6 +1489,13 @@ browserslist@^1.3.6, browserslist@^1.5.2, browserslist@^1.7.6:
14541489
caniuse-db "^1.0.30000639"
14551490
electron-to-chromium "^1.2.7"
14561491

1492+
browserslist@^2.1.2:
1493+
version "2.11.3"
1494+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.11.3.tgz#fe36167aed1bbcde4827ebfe71347a2cc70b99b2"
1495+
dependencies:
1496+
caniuse-lite "^1.0.30000792"
1497+
electron-to-chromium "^1.3.30"
1498+
14571499
bser@^2.0.0:
14581500
version "2.0.0"
14591501
resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719"
@@ -1589,6 +1631,10 @@ caniuse-db@^1.0.30000529, caniuse-db@^1.0.30000634, caniuse-db@^1.0.30000639:
15891631
version "1.0.30000813"
15901632
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000813.tgz#e0a1c603f8880ad787b2a35652b2733f32a5e29a"
15911633

1634+
caniuse-lite@^1.0.30000792:
1635+
version "1.0.30000815"
1636+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000815.tgz#3a4258e6850362185adb11b0d754a48402d35bf6"
1637+
15921638
caseless@~0.12.0:
15931639
version "0.12.0"
15941640
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
@@ -2576,6 +2622,10 @@ electron-to-chromium@^1.2.7:
25762622
version "1.3.36"
25772623
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.36.tgz#0eabf71a9ebea9013fb1cc35a390e068624f27e8"
25782624

2625+
electron-to-chromium@^1.3.30:
2626+
version "1.3.37"
2627+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.37.tgz#4a92734e0044c8cf0b1553be57eae21a4c6e5fab"
2628+
25792629
elegant-spinner@^1.0.1:
25802630
version "1.0.1"
25812631
resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy