Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.

Commit edbdc00

Browse files
committed
Use babel-preset-env.
1 parent d33f65a commit edbdc00

File tree

3 files changed

+65
-17
lines changed

3 files changed

+65
-17
lines changed

.babelrc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"lodash"
55
],
66
"presets": [
7-
"es2015"
7+
["env", {
8+
"targets": {
9+
"node": 4
10+
}
11+
}]
812
]
913
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"babel-plugin-syntax-jsx": "^6.18.0",
2626
"babel-plugin-transform-object-rest-spread": "^6.16.0",
2727
"babel-plugin-transform-runtime": "^6.13.3",
28+
"babel-preset-env": "0.0.6",
2829
"babel-preset-es2015": "^6.18.0",
2930
"babel-preset-react": "^6.16.0",
3031
"babel-preset-stage-0": "^6.16.0",

yarn.lock

Lines changed: 59 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ babel-plugin-syntax-object-rest-spread@^6.8.0:
397397
version "6.13.0"
398398
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
399399

400-
babel-plugin-syntax-trailing-function-commas@^6.3.13:
400+
babel-plugin-syntax-trailing-function-commas@^6.13.0, babel-plugin-syntax-trailing-function-commas@^6.3.13:
401401
version "6.13.0"
402402
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-trailing-function-commas/-/babel-plugin-syntax-trailing-function-commas-6.13.0.tgz#2b84b7d53dd744f94ff1fad7669406274b23f541"
403403

@@ -409,7 +409,7 @@ babel-plugin-transform-async-generator-functions@^6.17.0:
409409
babel-plugin-syntax-async-generators "^6.5.0"
410410
babel-runtime "^6.0.0"
411411

412-
babel-plugin-transform-async-to-generator@^6.16.0:
412+
babel-plugin-transform-async-to-generator@^6.16.0, babel-plugin-transform-async-to-generator@^6.8.0:
413413
version "6.16.0"
414414
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-generator/-/babel-plugin-transform-async-to-generator-6.16.0.tgz#19ec36cb1486b59f9f468adfa42ce13908ca2999"
415415
dependencies:
@@ -463,7 +463,7 @@ babel-plugin-transform-es2015-block-scoped-functions@^6.3.13:
463463
dependencies:
464464
babel-runtime "^6.0.0"
465465

466-
babel-plugin-transform-es2015-block-scoping@^6.18.0:
466+
babel-plugin-transform-es2015-block-scoping@^6.18.0, babel-plugin-transform-es2015-block-scoping@^6.6.0:
467467
version "6.18.0"
468468
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.18.0.tgz#3bfdcfec318d46df22525cdea88f1978813653af"
469469
dependencies:
@@ -473,7 +473,7 @@ babel-plugin-transform-es2015-block-scoping@^6.18.0:
473473
babel-types "^6.18.0"
474474
lodash "^4.2.0"
475475

476-
babel-plugin-transform-es2015-classes@^6.18.0:
476+
babel-plugin-transform-es2015-classes@^6.18.0, babel-plugin-transform-es2015-classes@^6.6.0:
477477
version "6.18.0"
478478
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-classes/-/babel-plugin-transform-es2015-classes-6.18.0.tgz#ffe7a17321bf83e494dcda0ae3fc72df48ffd1d9"
479479
dependencies:
@@ -495,7 +495,7 @@ babel-plugin-transform-es2015-computed-properties@^6.3.13:
495495
babel-runtime "^6.0.0"
496496
babel-template "^6.8.0"
497497

498-
babel-plugin-transform-es2015-destructuring@^6.18.0:
498+
babel-plugin-transform-es2015-destructuring@^6.18.0, babel-plugin-transform-es2015-destructuring@^6.6.0:
499499
version "6.18.0"
500500
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-destructuring/-/babel-plugin-transform-es2015-destructuring-6.18.0.tgz#a08fb89415ab82058649558bedb7bf8dafa76ba5"
501501
dependencies:
@@ -508,13 +508,13 @@ babel-plugin-transform-es2015-duplicate-keys@^6.6.0:
508508
babel-runtime "^6.0.0"
509509
babel-types "^6.8.0"
510510

511-
babel-plugin-transform-es2015-for-of@^6.18.0:
511+
babel-plugin-transform-es2015-for-of@^6.18.0, babel-plugin-transform-es2015-for-of@^6.6.0:
512512
version "6.18.0"
513513
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-for-of/-/babel-plugin-transform-es2015-for-of-6.18.0.tgz#4c517504db64bf8cfc119a6b8f177211f2028a70"
514514
dependencies:
515515
babel-runtime "^6.0.0"
516516

517-
babel-plugin-transform-es2015-function-name@^6.9.0:
517+
babel-plugin-transform-es2015-function-name@^6.3.13, babel-plugin-transform-es2015-function-name@^6.9.0:
518518
version "6.9.0"
519519
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-function-name/-/babel-plugin-transform-es2015-function-name-6.9.0.tgz#8c135b17dbd064e5bba56ec511baaee2fca82719"
520520
dependencies:
@@ -528,15 +528,15 @@ babel-plugin-transform-es2015-literals@^6.3.13:
528528
dependencies:
529529
babel-runtime "^6.0.0"
530530

531-
babel-plugin-transform-es2015-modules-amd@^6.18.0:
531+
babel-plugin-transform-es2015-modules-amd@^6.18.0, babel-plugin-transform-es2015-modules-amd@^6.8.0:
532532
version "6.18.0"
533533
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-amd/-/babel-plugin-transform-es2015-modules-amd-6.18.0.tgz#49a054cbb762bdf9ae2d8a807076cfade6141e40"
534534
dependencies:
535535
babel-plugin-transform-es2015-modules-commonjs "^6.18.0"
536536
babel-runtime "^6.0.0"
537537
babel-template "^6.8.0"
538538

539-
babel-plugin-transform-es2015-modules-commonjs@^6.18.0:
539+
babel-plugin-transform-es2015-modules-commonjs@^6.18.0, babel-plugin-transform-es2015-modules-commonjs@^6.6.0:
540540
version "6.18.0"
541541
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.18.0.tgz#c15ae5bb11b32a0abdcc98a5837baa4ee8d67bcc"
542542
dependencies:
@@ -545,15 +545,15 @@ babel-plugin-transform-es2015-modules-commonjs@^6.18.0:
545545
babel-template "^6.16.0"
546546
babel-types "^6.18.0"
547547

548-
babel-plugin-transform-es2015-modules-systemjs@^6.18.0:
548+
babel-plugin-transform-es2015-modules-systemjs@^6.12.0, babel-plugin-transform-es2015-modules-systemjs@^6.18.0:
549549
version "6.18.0"
550550
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-systemjs/-/babel-plugin-transform-es2015-modules-systemjs-6.18.0.tgz#f09294707163edae4d3b3e8bfacecd01d920b7ad"
551551
dependencies:
552552
babel-helper-hoist-variables "^6.18.0"
553553
babel-runtime "^6.11.6"
554554
babel-template "^6.14.0"
555555

556-
babel-plugin-transform-es2015-modules-umd@^6.18.0:
556+
babel-plugin-transform-es2015-modules-umd@^6.12.0, babel-plugin-transform-es2015-modules-umd@^6.18.0:
557557
version "6.18.0"
558558
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-umd/-/babel-plugin-transform-es2015-modules-umd-6.18.0.tgz#23351770ece5c1f8e83ed67cb1d7992884491e50"
559559
dependencies:
@@ -568,7 +568,7 @@ babel-plugin-transform-es2015-object-super@^6.3.13:
568568
babel-helper-replace-supers "^6.8.0"
569569
babel-runtime "^6.0.0"
570570

571-
babel-plugin-transform-es2015-parameters@^6.18.0:
571+
babel-plugin-transform-es2015-parameters@^6.18.0, babel-plugin-transform-es2015-parameters@^6.6.0:
572572
version "6.18.0"
573573
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-parameters/-/babel-plugin-transform-es2015-parameters-6.18.0.tgz#9b2cfe238c549f1635ba27fc1daa858be70608b1"
574574
dependencies:
@@ -579,7 +579,7 @@ babel-plugin-transform-es2015-parameters@^6.18.0:
579579
babel-traverse "^6.18.0"
580580
babel-types "^6.18.0"
581581

582-
babel-plugin-transform-es2015-shorthand-properties@^6.18.0:
582+
babel-plugin-transform-es2015-shorthand-properties@^6.18.0, babel-plugin-transform-es2015-shorthand-properties@^6.3.13:
583583
version "6.18.0"
584584
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-shorthand-properties/-/babel-plugin-transform-es2015-shorthand-properties-6.18.0.tgz#e2ede3b7df47bf980151926534d1dd0cbea58f43"
585585
dependencies:
@@ -606,7 +606,7 @@ babel-plugin-transform-es2015-template-literals@^6.6.0:
606606
dependencies:
607607
babel-runtime "^6.0.0"
608608

609-
babel-plugin-transform-es2015-typeof-symbol@^6.18.0:
609+
babel-plugin-transform-es2015-typeof-symbol@^6.18.0, babel-plugin-transform-es2015-typeof-symbol@^6.6.0:
610610
version "6.18.0"
611611
resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-typeof-symbol/-/babel-plugin-transform-es2015-typeof-symbol-6.18.0.tgz#0b14c48629c90ff47a0650077f6aa699bee35798"
612612
dependencies:
@@ -620,7 +620,7 @@ babel-plugin-transform-es2015-unicode-regex@^6.3.13:
620620
babel-runtime "^6.0.0"
621621
regexpu-core "^2.0.0"
622622

623-
babel-plugin-transform-exponentiation-operator@^6.3.13:
623+
babel-plugin-transform-exponentiation-operator@^6.3.13, babel-plugin-transform-exponentiation-operator@^6.8.0:
624624
version "6.8.0"
625625
resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.8.0.tgz#db25742e9339eade676ca9acec46f955599a68a4"
626626
dependencies:
@@ -684,7 +684,7 @@ babel-plugin-transform-react-jsx@^6.3.13:
684684
babel-plugin-syntax-jsx "^6.8.0"
685685
babel-runtime "^6.0.0"
686686

687-
babel-plugin-transform-regenerator@^6.16.0:
687+
babel-plugin-transform-regenerator@^6.16.0, babel-plugin-transform-regenerator@^6.6.0:
688688
version "6.16.1"
689689
resolved "https://registry.yarnpkg.com/babel-plugin-transform-regenerator/-/babel-plugin-transform-regenerator-6.16.1.tgz#a75de6b048a14154aae14b0122756c5bed392f59"
690690
dependencies:
@@ -713,6 +713,39 @@ babel-polyfill@^6.16.0:
713713
core-js "^2.4.0"
714714
regenerator-runtime "^0.9.5"
715715

716+
717+
version "0.0.6"
718+
resolved "https://registry.yarnpkg.com/babel-preset-env/-/babel-preset-env-0.0.6.tgz#cda63a020069098fad12272a7a447a7c5bafb3c8"
719+
dependencies:
720+
babel-plugin-check-es2015-constants "^6.3.13"
721+
babel-plugin-syntax-trailing-function-commas "^6.13.0"
722+
babel-plugin-transform-async-to-generator "^6.8.0"
723+
babel-plugin-transform-es2015-arrow-functions "^6.3.13"
724+
babel-plugin-transform-es2015-block-scoped-functions "^6.3.13"
725+
babel-plugin-transform-es2015-block-scoping "^6.6.0"
726+
babel-plugin-transform-es2015-classes "^6.6.0"
727+
babel-plugin-transform-es2015-computed-properties "^6.3.13"
728+
babel-plugin-transform-es2015-destructuring "^6.6.0"
729+
babel-plugin-transform-es2015-duplicate-keys "^6.6.0"
730+
babel-plugin-transform-es2015-for-of "^6.6.0"
731+
babel-plugin-transform-es2015-function-name "^6.3.13"
732+
babel-plugin-transform-es2015-literals "^6.3.13"
733+
babel-plugin-transform-es2015-modules-amd "^6.8.0"
734+
babel-plugin-transform-es2015-modules-commonjs "^6.6.0"
735+
babel-plugin-transform-es2015-modules-systemjs "^6.12.0"
736+
babel-plugin-transform-es2015-modules-umd "^6.12.0"
737+
babel-plugin-transform-es2015-object-super "^6.3.13"
738+
babel-plugin-transform-es2015-parameters "^6.6.0"
739+
babel-plugin-transform-es2015-shorthand-properties "^6.3.13"
740+
babel-plugin-transform-es2015-spread "^6.3.13"
741+
babel-plugin-transform-es2015-sticky-regex "^6.3.13"
742+
babel-plugin-transform-es2015-template-literals "^6.6.0"
743+
babel-plugin-transform-es2015-typeof-symbol "^6.6.0"
744+
babel-plugin-transform-es2015-unicode-regex "^6.3.13"
745+
babel-plugin-transform-exponentiation-operator "^6.8.0"
746+
babel-plugin-transform-regenerator "^6.6.0"
747+
browserslist "^1.4.0"
748+
716749
babel-preset-es2015@^6.18.0:
717750
version "6.18.0"
718751
resolved "https://registry.yarnpkg.com/babel-preset-es2015/-/babel-preset-es2015-6.18.0.tgz#b8c70df84ec948c43dcf2bf770e988eb7da88312"
@@ -918,10 +951,20 @@ [email protected]:
918951
version "1.3.0"
919952
resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.0.tgz#f351d32969d32fa5d7a5567154263d928ae3bd1f"
920953

954+
browserslist@^1.4.0:
955+
version "1.4.0"
956+
resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-1.4.0.tgz#9cfdcf5384d9158f5b70da2aa00b30e8ff019049"
957+
dependencies:
958+
caniuse-db "^1.0.30000539"
959+
921960
buffer-shims@^1.0.0:
922961
version "1.0.0"
923962
resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51"
924963

964+
caniuse-db@^1.0.30000539:
965+
version "1.0.30000572"
966+
resolved "https://registry.yarnpkg.com/caniuse-db/-/caniuse-db-1.0.30000572.tgz#81d0aa6b7de2d785c8dcab135502983276cc707d"
967+
925968
caseless@~0.11.0:
926969
version "0.11.0"
927970
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.11.0.tgz#715b96ea9841593cc33067923f5ec60ebda4f7d7"

0 commit comments

Comments
 (0)