Skip to content

Commit 01979b6

Browse files
ink8bitHaroenv
authored andcommitted
Add babel-preset-env, Remove babel-preset-es2015 (#609)
1 parent df8fd84 commit 01979b6

File tree

3 files changed

+85
-55
lines changed

3 files changed

+85
-55
lines changed

.babelrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": [
33
// webpack understands the native import syntax, and uses it for tree shaking
44
[
5-
"es2015",
5+
"env",
66
{
77
"modules": false
88
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"babel-loader": "^7.1.1",
88
"babel-plugin-transform-react-constant-elements": "^6.23.0",
99
"babel-plugin-transform-react-inline-elements": "^6.22.0",
10-
"babel-preset-es2015": "^6.24.1",
10+
"babel-preset-env": "1.6.0",
1111
"babel-preset-react": "^6.24.1",
1212
"babel-preset-stage-2": "^6.24.1",
1313
"happypack": "^4.0.0-beta.2",

yarn.lock

+83-53
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ babel-plugin-transform-async-generator-functions@^6.24.1:
481481
babel-plugin-syntax-async-generators "^6.5.0"
482482
babel-runtime "^6.22.0"
483483

484-
babel-plugin-transform-async-to-generator@^6.24.1:
484+
babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-to-generator@^6.24.1:
485485
version "6.24.1"
486486
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.24.1.tgz#6536e378aff6cb1d5517ac0e40eb3e9fc8d08761"
487487
dependencies:
@@ -520,17 +520,17 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.22.0:
520520
dependencies:
521521
babel-runtime "^6.22.0"
522522

523-
babel-plugin-transform-es2015-block-scoping@^6.24.1:
524-
version "6.24.1"
525-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.24.1.tgz#76c295dc3a4741b1665adfd3167215dcff32a576"
523+
babel-plugin-transform-es2015-block-scoping@^6.23.0:
524+
version "6.26.0"
525+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz#d70f5299c1308d05c12f463813b0a09e73b1895f"
526526
dependencies:
527-
babel-runtime "^6.22.0"
528-
babel-template "^6.24.1"
529-
babel-traverse "^6.24.1"
530-
babel-types "^6.24.1"
531-
lodash "^4.2.0"
527+
babel-runtime "^6.26.0"
528+
babel-template "^6.26.0"
529+
babel-traverse "^6.26.0"
530+
babel-types "^6.26.0"
531+
lodash "^4.17.4"
532532

533-
babel-plugin-transform-es2015-classes@^6.24.1:
533+
babel-plugin-transform-es2015-classes@^6.23.0:
534534
version "6.24.1"
535535
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.24.1.tgz#5a4c58a50c9c9461e564b4b2a3bfabc97a2584db"
536536
dependencies:
@@ -544,33 +544,33 @@ babel-plugin-transform-es2015-classes@^6.24.1:
544544
babel-traverse "^6.24.1"
545545
babel-types "^6.24.1"
546546

547-
babel-plugin-transform-es2015-computed-properties@^6.24.1:
547+
babel-plugin-transform-es2015-computed-properties@^6.22.0:
548548
version "6.24.1"
549549
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-computed-properties/-/babel-plugin-transform-es2015-computed-properties-6.24.1.tgz#6fe2a8d16895d5634f4cd999b6d3480a308159b3"
550550
dependencies:
551551
babel-runtime "^6.22.0"
552552
babel-template "^6.24.1"
553553

554-
babel-plugin-transform-es2015-destructuring@^6.22.0:
554+
babel-plugin-transform-es2015-destructuring@^6.23.0:
555555
version "6.23.0"
556556
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.23.0.tgz#997bb1f1ab967f682d2b0876fe358d60e765c56d"
557557
dependencies:
558558
babel-runtime "^6.22.0"
559559

560-
babel-plugin-transform-es2015-duplicate-keys@^6.24.1:
560+
babel-plugin-transform-es2015-duplicate-keys@^6.22.0:
561561
version "6.24.1"
562562
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-duplicate-keys/-/babel-plugin-transform-es2015-duplicate-keys-6.24.1.tgz#73eb3d310ca969e3ef9ec91c53741a6f1576423e"
563563
dependencies:
564564
babel-runtime "^6.22.0"
565565
babel-types "^6.24.1"
566566

567-
babel-plugin-transform-es2015-for-of@^6.22.0:
567+
babel-plugin-transform-es2015-for-of@^6.23.0:
568568
version "6.23.0"
569569
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.23.0.tgz#f47c95b2b613df1d3ecc2fdb7573623c75248691"
570570
dependencies:
571571
babel-runtime "^6.22.0"
572572

573-
babel-plugin-transform-es2015-function-name@^6.24.1:
573+
babel-plugin-transform-es2015-function-name@^6.22.0:
574574
version "6.24.1"
575575
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.24.1.tgz#834c89853bc36b1af0f3a4c5dbaa94fd8eacaa8b"
576576
dependencies:
@@ -584,14 +584,23 @@ babel-plugin-transform-es2015-literals@^6.22.0:
584584
dependencies:
585585
babel-runtime "^6.22.0"
586586

587-
babel-plugin-transform-es2015-modules-amd@^6.24.1:
587+
babel-plugin-transform-es2015-modules-amd@^6.22.0, babel-plugin-transform-es2015-modules-amd@^6.24.1:
588588
version "6.24.1"
589589
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.24.1.tgz#3b3e54017239842d6d19c3011c4bd2f00a00d154"
590590
dependencies:
591591
babel-plugin-transform-es2015-modules-commonjs "^6.24.1"
592592
babel-runtime "^6.22.0"
593593
babel-template "^6.24.1"
594594

595+
babel-plugin-transform-es2015-modules-commonjs@^6.23.0:
596+
version "6.26.0"
597+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.0.tgz#0d8394029b7dc6abe1a97ef181e00758dd2e5d8a"
598+
dependencies:
599+
babel-plugin-transform-strict-mode "^6.24.1"
600+
babel-runtime "^6.26.0"
601+
babel-template "^6.26.0"
602+
babel-types "^6.26.0"
603+
595604
babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
596605
version "6.24.1"
597606
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.24.1.tgz#d3e310b40ef664a36622200097c6d440298f2bfe"
@@ -601,30 +610,30 @@ babel-plugin-transform-es2015-modules-commonjs@^6.24.1:
601610
babel-template "^6.24.1"
602611
babel-types "^6.24.1"
603612

604-
babel-plugin-transform-es2015-modules-systemjs@^6.24.1:
613+
babel-plugin-transform-es2015-modules-systemjs@^6.23.0:
605614
version "6.24.1"
606615
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.24.1.tgz#ff89a142b9119a906195f5f106ecf305d9407d23"
607616
dependencies:
608617
babel-helper-hoist-variables "^6.24.1"
609618
babel-runtime "^6.22.0"
610619
babel-template "^6.24.1"
611620

612-
babel-plugin-transform-es2015-modules-umd@^6.24.1:
621+
babel-plugin-transform-es2015-modules-umd@^6.23.0:
613622
version "6.24.1"
614623
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.24.1.tgz#ac997e6285cd18ed6176adb607d602344ad38468"
615624
dependencies:
616625
babel-plugin-transform-es2015-modules-amd "^6.24.1"
617626
babel-runtime "^6.22.0"
618627
babel-template "^6.24.1"
619628

620-
babel-plugin-transform-es2015-object-super@^6.24.1:
629+
babel-plugin-transform-es2015-object-super@^6.22.0:
621630
version "6.24.1"
622631
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-object-super/-/babel-plugin-transform-es2015-object-super-6.24.1.tgz#24cef69ae21cb83a7f8603dad021f572eb278f8d"
623632
dependencies:
624633
babel-helper-replace-supers "^6.24.1"
625634
babel-runtime "^6.22.0"
626635

627-
babel-plugin-transform-es2015-parameters@^6.24.1:
636+
babel-plugin-transform-es2015-parameters@^6.23.0:
628637
version "6.24.1"
629638
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.24.1.tgz#57ac351ab49caf14a97cd13b09f66fdf0a625f2b"
630639
dependencies:
@@ -635,7 +644,7 @@ babel-plugin-transform-es2015-parameters@^6.24.1:
635644
babel-traverse "^6.24.1"
636645
babel-types "^6.24.1"
637646

638-
babel-plugin-transform-es2015-shorthand-properties@^6.24.1:
647+
babel-plugin-transform-es2015-shorthand-properties@^6.22.0:
639648
version "6.24.1"
640649
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.24.1.tgz#24f875d6721c87661bbd99a4622e51f14de38aa0"
641650
dependencies:
@@ -648,7 +657,7 @@ babel-plugin-transform-es2015-spread@^6.22.0:
648657
dependencies:
649658
babel-runtime "^6.22.0"
650659

651-
babel-plugin-transform-es2015-sticky-regex@^6.24.1:
660+
babel-plugin-transform-es2015-sticky-regex@^6.22.0:
652661
version "6.24.1"
653662
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-sticky-regex/-/babel-plugin-transform-es2015-sticky-regex-6.24.1.tgz#00c1cdb1aca71112cdf0cf6126c2ed6b457ccdbc"
654663
dependencies:
@@ -662,21 +671,21 @@ babel-plugin-transform-es2015-template-literals@^6.22.0:
662671
dependencies:
663672
babel-runtime "^6.22.0"
664673

665-
babel-plugin-transform-es2015-typeof-symbol@^6.22.0:
674+
babel-plugin-transform-es2015-typeof-symbol@^6.23.0:
666675
version "6.23.0"
667676
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.23.0.tgz#dec09f1cddff94b52ac73d505c84df59dcceb372"
668677
dependencies:
669678
babel-runtime "^6.22.0"
670679

671-
babel-plugin-transform-es2015-unicode-regex@^6.24.1:
680+
babel-plugin-transform-es2015-unicode-regex@^6.22.0:
672681
version "6.24.1"
673682
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-unicode-regex/-/babel-plugin-transform-es2015-unicode-regex-6.24.1.tgz#d38b12f42ea7323f729387f18a7c5ae1faeb35e9"
674683
dependencies:
675684
babel-helper-regex "^6.24.1"
676685
babel-runtime "^6.22.0"
677686
regexpu-core "^2.0.0"
678687

679-
babel-plugin-transform-exponentiation-operator@^6.24.1:
688+
babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1:
680689
version "6.24.1"
681690
resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
682691
dependencies:
@@ -738,11 +747,11 @@ babel-plugin-transform-react-jsx@^6.24.1:
738747
babel-plugin-syntax-jsx "^6.8.0"
739748
babel-runtime "^6.22.0"
740749

741-
babel-plugin-transform-regenerator@^6.24.1:
742-
version "6.24.1"
743-
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.24.1.tgz#b8da305ad43c3c99b4848e4fe4037b770d23c418"
750+
babel-plugin-transform-regenerator@^6.22.0:
751+
version "6.26.0"
752+
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.26.0.tgz#e0703696fbde27f0a3efcacf8b4dca2f7b3a8f2f"
744753
dependencies:
745-
regenerator-transform "0.9.11"
754+
regenerator-transform "^0.10.0"
746755

747756
babel-plugin-transform-strict-mode@^6.24.1:
748757
version "6.24.1"
@@ -751,34 +760,40 @@ babel-plugin-transform-strict-mode@^6.24.1:
751760
babel-runtime "^6.22.0"
752761
babel-types "^6.24.1"
753762

754-
babel-preset-es2015@^6.24.1:
755-
version "6.24.1"
756-
resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.24.1.tgz#d44050d6bc2c9feea702aaf38d727a0210538939"
763+
babel-preset-[email protected]:
764+
version "1.6.0"
765+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-1.6.0.tgz#2de1c782a780a0a5d605d199c957596da43c44e4"
757766
dependencies:
758767
babel-plugin-check-es2015-constants "^6.22.0"
768+
babel-plugin-syntax-trailing-function-commas "^6.22.0"
769+
babel-plugin-transform-async-to-generator "^6.22.0"
759770
babel-plugin-transform-es2015-arrow-functions "^6.22.0"
760771
babel-plugin-transform-es2015-block-scoped-functions "^6.22.0"
761-
babel-plugin-transform-es2015-block-scoping "^6.24.1"
762-
babel-plugin-transform-es2015-classes "^6.24.1"
763-
babel-plugin-transform-es2015-computed-properties "^6.24.1"
764-
babel-plugin-transform-es2015-destructuring "^6.22.0"
765-
babel-plugin-transform-es2015-duplicate-keys "^6.24.1"
766-
babel-plugin-transform-es2015-for-of "^6.22.0"
767-
babel-plugin-transform-es2015-function-name "^6.24.1"
772+
babel-plugin-transform-es2015-block-scoping "^6.23.0"
773+
babel-plugin-transform-es2015-classes "^6.23.0"
774+
babel-plugin-transform-es2015-computed-properties "^6.22.0"
775+
babel-plugin-transform-es2015-destructuring "^6.23.0"
776+
babel-plugin-transform-es2015-duplicate-keys "^6.22.0"
777+
babel-plugin-transform-es2015-for-of "^6.23.0"
778+
babel-plugin-transform-es2015-function-name "^6.22.0"
768779
babel-plugin-transform-es2015-literals "^6.22.0"
769-
babel-plugin-transform-es2015-modules-amd "^6.24.1"
770-
babel-plugin-transform-es2015-modules-commonjs "^6.24.1"
771-
babel-plugin-transform-es2015-modules-systemjs "^6.24.1"
772-
babel-plugin-transform-es2015-modules-umd "^6.24.1"
773-
babel-plugin-transform-es2015-object-super "^6.24.1"
774-
babel-plugin-transform-es2015-parameters "^6.24.1"
775-
babel-plugin-transform-es2015-shorthand-properties "^6.24.1"
780+
babel-plugin-transform-es2015-modules-amd "^6.22.0"
781+
babel-plugin-transform-es2015-modules-commonjs "^6.23.0"
782+
babel-plugin-transform-es2015-modules-systemjs "^6.23.0"
783+
babel-plugin-transform-es2015-modules-umd "^6.23.0"
784+
babel-plugin-transform-es2015-object-super "^6.22.0"
785+
babel-plugin-transform-es2015-parameters "^6.23.0"
786+
babel-plugin-transform-es2015-shorthand-properties "^6.22.0"
776787
babel-plugin-transform-es2015-spread "^6.22.0"
777-
babel-plugin-transform-es2015-sticky-regex "^6.24.1"
788+
babel-plugin-transform-es2015-sticky-regex "^6.22.0"
778789
babel-plugin-transform-es2015-template-literals "^6.22.0"
779-
babel-plugin-transform-es2015-typeof-symbol "^6.22.0"
780-
babel-plugin-transform-es2015-unicode-regex "^6.24.1"
781-
babel-plugin-transform-regenerator "^6.24.1"
790+
babel-plugin-transform-es2015-typeof-symbol "^6.23.0"
791+
babel-plugin-transform-es2015-unicode-regex "^6.22.0"
792+
babel-plugin-transform-exponentiation-operator "^6.22.0"
793+
babel-plugin-transform-regenerator "^6.22.0"
794+
browserslist "^2.1.2"
795+
invariant "^2.2.2"
796+
semver "^5.3.0"
782797

783798
babel-preset-flow@^6.23.0:
784799
version "6.23.0"
@@ -1031,6 +1046,13 @@ browserify-zlib@^0.1.4:
10311046
dependencies:
10321047
pako "~0.2.0"
10331048

1049+
browserslist@^2.1.2:
1050+
version "2.3.3"
1051+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-2.3.3.tgz#2b0cabc4d28489f682598605858a0782f14b154c"
1052+
dependencies:
1053+
caniuse-lite "^1.0.30000715"
1054+
electron-to-chromium "^1.3.18"
1055+
10341056
buffer-xor@^1.0.2:
10351057
version "1.0.3"
10361058
resolved "https://registry.yarnpkg.com/buffer-xor/-/buffer-xor-1.0.3.tgz#26e61ed1422fb70dd42e6e36729ed51d855fe8d9"
@@ -1063,6 +1085,10 @@ camelcase@^4.1.0:
10631085
version "4.1.0"
10641086
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd"
10651087

1088+
caniuse-lite@^1.0.30000715:
1089+
version "1.0.30000717"
1090+
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30000717.tgz#4539b126af787c1d4851944de22b2bd8780d3612"
1091+
10661092
caseless@~0.12.0:
10671093
version "0.12.0"
10681094
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
@@ -1391,6 +1417,10 @@ ecc-jsbn@~0.1.1:
13911417
dependencies:
13921418
jsbn "~0.1.0"
13931419

1420+
electron-to-chromium@^1.3.18:
1421+
version "1.3.18"
1422+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.18.tgz#3dcc99da3e6b665f6abbc71c28ad51a2cd731a9c"
1423+
13941424
elegant-spinner@^1.0.1:
13951425
version "1.0.1"
13961426
resolved "https://registry.yarnpkg.com/elegant-spinner/-/elegant-spinner-1.0.1.tgz#db043521c95d7e303fd8f345bedc3349cfb0729e"
@@ -2925,9 +2955,9 @@ regenerator-runtime@^0.11.0:
29252955
version "0.11.0"
29262956
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.0.tgz#7e54fe5b5ccd5d6624ea6255c3473be090b802e1"
29272957

2928-
regenerator-transform@0.9.11:
2929-
version "0.9.11"
2930-
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.9.11.tgz#3a7d067520cb7b7176769eb5ff868691befe1283"
2958+
regenerator-transform@^0.10.0:
2959+
version "0.10.1"
2960+
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd"
29312961
dependencies:
29322962
babel-runtime "^6.18.0"
29332963
babel-types "^6.19.0"

0 commit comments

Comments
 (0)