Commit acf995d67171193864184a2b7d303f9a35fe8ddb

Authored by Aresn
Committed by GitHub
2 parents 4ba1df81 e64ab2e1

Merge pull request #2839 from Xotic750/babel_browserlist_transpilation_polyfills

Enhancement: Implement browserlist, specifically babel orientated.
Showing 4 changed files with 155 additions and 4 deletions   Show diff stats
.babelrc
1 1 {
2   - "presets": ["env", "stage-3"],
3   - "plugins": ["transform-runtime"],
  2 + "presets": [
  3 + ["env", {
  4 + "loose": false,
  5 + "modules": "commonjs",
  6 + "spec": true,
  7 + "targets": {
  8 + "browsers": [
  9 + "last 3 Chrome versions",
  10 + "last 3 Firefox versions",
  11 + "Safari >= 10",
  12 + "Explorer >= 11",
  13 + "Edge >= 12",
  14 + "iOS >= 10",
  15 + "Android >= 6"
  16 + ]
  17 + },
  18 + "useBuiltIns": "usage",
  19 + "debug": false
  20 + }],
  21 + "stage-3"
  22 + ],
  23 + "plugins": [
  24 + "dynamic-import-node",
  25 + "transform-class-properties",
  26 + "transform-es5-property-mutators",
  27 + "transform-object-rest-spread",
  28 + "transform-runtime",
  29 + "transform-vue-jsx"
  30 + ],
4 31 "comments": false
5 32 }
... ...
package-lock.json
... ... @@ -708,6 +708,12 @@
708 708 "babel-types": "6.26.0"
709 709 }
710 710 },
  711 + "babel-helper-vue-jsx-merge-props": {
  712 + "version": "2.0.3",
  713 + "resolved": "https://registry.npmjs.org/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
  714 + "integrity": "sha512-gsLiKK7Qrb7zYJNgiXKpXblxbV5ffSwR0f5whkPAaBAR4fhi6bwRZxX9wBlIc5M/v8CCkXUbXZL4N/nSE97cqg==",
  715 + "dev": true
  716 + },
711 717 "babel-helpers": {
712 718 "version": "6.24.1",
713 719 "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz",
... ... @@ -748,6 +754,15 @@
748 754 "babel-runtime": "6.26.0"
749 755 }
750 756 },
  757 + "babel-plugin-dynamic-import-node": {
  758 + "version": "1.2.0",
  759 + "resolved": "https://registry.npmjs.org/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-1.2.0.tgz",
  760 + "integrity": "sha512-yeDwKaLgGdTpXL7RgGt5r6T4LmnTza/hUn5Ul8uZSGGMtEjYo13Nxai7SQaGCTEzUtg9Zq9qJn0EjEr7SeSlTQ==",
  761 + "dev": true,
  762 + "requires": {
  763 + "babel-plugin-syntax-dynamic-import": "6.18.0"
  764 + }
  765 + },
751 766 "babel-plugin-syntax-async-functions": {
752 767 "version": "6.13.0",
753 768 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz",
... ... @@ -760,12 +775,30 @@
760 775 "integrity": "sha1-a8lj67FuzLrmuStZbrfzXDQqi5o=",
761 776 "dev": true
762 777 },
  778 + "babel-plugin-syntax-class-properties": {
  779 + "version": "6.13.0",
  780 + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz",
  781 + "integrity": "sha1-1+sjt5oxf4VDlixQW4J8fWysJ94=",
  782 + "dev": true
  783 + },
  784 + "babel-plugin-syntax-dynamic-import": {
  785 + "version": "6.18.0",
  786 + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz",
  787 + "integrity": "sha1-jWomIpyDdFqZgqRBBRVyyqF5sdo=",
  788 + "dev": true
  789 + },
763 790 "babel-plugin-syntax-exponentiation-operator": {
764 791 "version": "6.13.0",
765 792 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz",
766 793 "integrity": "sha1-nufoM3KQ2pUoggGmpX9BcDF4MN4=",
767 794 "dev": true
768 795 },
  796 + "babel-plugin-syntax-jsx": {
  797 + "version": "6.18.0",
  798 + "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz",
  799 + "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=",
  800 + "dev": true
  801 + },
769 802 "babel-plugin-syntax-object-rest-spread": {
770 803 "version": "6.13.0",
771 804 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz",
... ... @@ -800,6 +833,18 @@
800 833 "babel-runtime": "6.26.0"
801 834 }
802 835 },
  836 + "babel-plugin-transform-class-properties": {
  837 + "version": "6.24.1",
  838 + "resolved": "https://registry.npmjs.org/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz",
  839 + "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=",
  840 + "dev": true,
  841 + "requires": {
  842 + "babel-helper-function-name": "6.24.1",
  843 + "babel-plugin-syntax-class-properties": "6.13.0",
  844 + "babel-runtime": "6.26.0",
  845 + "babel-template": "6.26.0"
  846 + }
  847 + },
803 848 "babel-plugin-transform-es2015-arrow-functions": {
804 849 "version": "6.22.0",
805 850 "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz",
... ... @@ -1034,6 +1079,16 @@
1034 1079 "regexpu-core": "2.0.0"
1035 1080 }
1036 1081 },
  1082 + "babel-plugin-transform-es5-property-mutators": {
  1083 + "version": "6.24.1",
  1084 + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es5-property-mutators/-/babel-plugin-transform-es5-property-mutators-6.24.1.tgz",
  1085 + "integrity": "sha1-C5ok9OL/GMM2A9JKDUONyXk7ChM=",
  1086 + "dev": true,
  1087 + "requires": {
  1088 + "babel-helper-define-map": "6.26.0",
  1089 + "babel-runtime": "6.26.0"
  1090 + }
  1091 + },
1037 1092 "babel-plugin-transform-exponentiation-operator": {
1038 1093 "version": "6.24.1",
1039 1094 "resolved": "https://registry.npmjs.org/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz",
... ... @@ -1083,6 +1138,15 @@
1083 1138 "babel-types": "6.26.0"
1084 1139 }
1085 1140 },
  1141 + "babel-plugin-transform-vue-jsx": {
  1142 + "version": "3.5.0",
  1143 + "resolved": "https://registry.npmjs.org/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-3.5.0.tgz",
  1144 + "integrity": "sha512-5vCg8K7aiiLwrFJ45ZF/b4cIiFpGAoYL5uNZpbgiZFptBc5LkueBCQXTVexrd1IFlpTV7XndqFjtWjcJ54JGUQ==",
  1145 + "dev": true,
  1146 + "requires": {
  1147 + "esutils": "2.0.2"
  1148 + }
  1149 + },
1086 1150 "babel-polyfill": {
1087 1151 "version": "6.26.0",
1088 1152 "resolved": "https://registry.npmjs.org/babel-polyfill/-/babel-polyfill-6.26.0.tgz",
... ...
package.json
... ... @@ -55,8 +55,15 @@
55 55 "autoprefixer-loader": "^2.0.0",
56 56 "babel-cli": "^6.26.0",
57 57 "babel-core": "^6.26.0",
  58 + "babel-helper-vue-jsx-merge-props": "^2.0.3",
58 59 "babel-loader": "^6.4.1",
  60 + "babel-plugin-dynamic-import-node": "^1.2.0",
  61 + "babel-plugin-syntax-jsx": "^6.18.0",
  62 + "babel-plugin-transform-class-properties": "^6.24.1",
  63 + "babel-plugin-transform-es5-property-mutators": "^6.24.1",
  64 + "babel-plugin-transform-object-rest-spread": "^6.26.0",
59 65 "babel-plugin-transform-runtime": "^6.12.0",
  66 + "babel-plugin-transform-vue-jsx": "^3.5.0",
60 67 "babel-preset-env": "^1.6.1",
61 68 "babel-preset-stage-3": "^6.24.1",
62 69 "babel-runtime": "^6.26.0",
... ... @@ -106,5 +113,14 @@
106 113 "engines": {
107 114 "node": ">= 6.0.0",
108 115 "npm": ">= 3.0.0"
109   - }
  116 + },
  117 + "browserslist": [
  118 + "last 3 Chrome versions",
  119 + "last 3 Firefox versions",
  120 + "Safari >= 10",
  121 + "Explorer >= 11",
  122 + "Edge >= 12",
  123 + "iOS >= 10",
  124 + "Android >= 6"
  125 + ]
110 126 }
... ...
yarn.lock
... ... @@ -563,6 +563,10 @@ babel-helper-replace-supers@^6.24.1:
563 563 babel-traverse "^6.24.1"
564 564 babel-types "^6.24.1"
565 565  
  566 +babel-helper-vue-jsx-merge-props@^2.0.3:
  567 + version "2.0.3"
  568 + resolved "https://registry.yarnpkg.com/babel-helper-vue-jsx-merge-props/-/babel-helper-vue-jsx-merge-props-2.0.3.tgz#22aebd3b33902328e513293a8e4992b384f9f1b6"
  569 +
566 570 babel-helpers@^6.24.1:
567 571 version "6.24.1"
568 572 resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.24.1.tgz#3471de9caec388e5c850e597e58a26ddf37602b2"
... ... @@ -591,6 +595,12 @@ babel-plugin-check-es2015-constants@^6.22.0:
591 595 dependencies:
592 596 babel-runtime "^6.22.0"
593 597  
  598 +babel-plugin-dynamic-import-node@^1.2.0:
  599 + version "1.2.0"
  600 + resolved "https://registry.yarnpkg.com/babel-plugin-dynamic-import-node/-/babel-plugin-dynamic-import-node-1.2.0.tgz#f91631e703e0595e47d4beafbb088576c87fbeee"
  601 + dependencies:
  602 + babel-plugin-syntax-dynamic-import "^6.18.0"
  603 +
594 604 babel-plugin-syntax-async-functions@^6.8.0:
595 605 version "6.13.0"
596 606 resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95"
... ... @@ -599,10 +609,22 @@ babel-plugin-syntax-async-generators@^6.5.0:
599 609 version "6.13.0"
600 610 resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-generators/-/babel-plugin-syntax-async-generators-6.13.0.tgz#6bc963ebb16eccbae6b92b596eb7f35c342a8b9a"
601 611  
  612 +babel-plugin-syntax-class-properties@^6.8.0:
  613 + version "6.13.0"
  614 + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-class-properties/-/babel-plugin-syntax-class-properties-6.13.0.tgz#d7eb23b79a317f8543962c505b827c7d6cac27de"
  615 +
  616 +babel-plugin-syntax-dynamic-import@^6.18.0:
  617 + version "6.18.0"
  618 + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-dynamic-import/-/babel-plugin-syntax-dynamic-import-6.18.0.tgz#8d6a26229c83745a9982a441051572caa179b1da"
  619 +
602 620 babel-plugin-syntax-exponentiation-operator@^6.8.0:
603 621 version "6.13.0"
604 622 resolved "https://registry.yarnpkg.com/babel-plugin-syntax-exponentiation-operator/-/babel-plugin-syntax-exponentiation-operator-6.13.0.tgz#9ee7e8337290da95288201a6a57f4170317830de"
605 623  
  624 +babel-plugin-syntax-jsx@^6.18.0:
  625 + version "6.18.0"
  626 + resolved "https://registry.yarnpkg.com/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz#0af32a9a6e13ca7a3fd5069e62d7b0f58d0d8946"
  627 +
606 628 babel-plugin-syntax-object-rest-spread@^6.8.0:
607 629 version "6.13.0"
608 630 resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
... ... @@ -627,6 +649,15 @@ babel-plugin-transform-async-to-generator@^6.22.0, babel-plugin-transform-async-
627 649 babel-plugin-syntax-async-functions "^6.8.0"
628 650 babel-runtime "^6.22.0"
629 651  
  652 +babel-plugin-transform-class-properties@^6.24.1:
  653 + version "6.24.1"
  654 + resolved "https://registry.yarnpkg.com/babel-plugin-transform-class-properties/-/babel-plugin-transform-class-properties-6.24.1.tgz#6a79763ea61d33d36f37b611aa9def81a81b46ac"
  655 + dependencies:
  656 + babel-helper-function-name "^6.24.1"
  657 + babel-plugin-syntax-class-properties "^6.8.0"
  658 + babel-runtime "^6.22.0"
  659 + babel-template "^6.24.1"
  660 +
630 661 babel-plugin-transform-es2015-arrow-functions@^6.22.0:
631 662 version "6.22.0"
632 663 resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-arrow-functions/-/babel-plugin-transform-es2015-arrow-functions-6.22.0.tgz#452692cb711d5f79dc7f85e440ce41b9f244d221"
... ... @@ -795,6 +826,13 @@ babel-plugin-transform-es2015-unicode-regex@^6.22.0:
795 826 babel-runtime "^6.22.0"
796 827 regexpu-core "^2.0.0"
797 828  
  829 +babel-plugin-transform-es5-property-mutators@^6.24.1:
  830 + version "6.24.1"
  831 + resolved "https://registry.yarnpkg.com/babel-plugin-transform-es5-property-mutators/-/babel-plugin-transform-es5-property-mutators-6.24.1.tgz#0b9a24f4e2ff18c33603d24a0d438dc9793b0a13"
  832 + dependencies:
  833 + babel-helper-define-map "^6.24.1"
  834 + babel-runtime "^6.22.0"
  835 +
798 836 babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-exponentiation-operator@^6.24.1:
799 837 version "6.24.1"
800 838 resolved "https://registry.yarnpkg.com/babel-plugin-transform-exponentiation-operator/-/babel-plugin-transform-exponentiation-operator-6.24.1.tgz#2ab0c9c7f3098fa48907772bb813fe41e8de3a0e"
... ... @@ -803,7 +841,7 @@ babel-plugin-transform-exponentiation-operator@^6.22.0, babel-plugin-transform-e
803 841 babel-plugin-syntax-exponentiation-operator "^6.8.0"
804 842 babel-runtime "^6.22.0"
805 843  
806   -babel-plugin-transform-object-rest-spread@^6.22.0:
  844 +babel-plugin-transform-object-rest-spread@^6.22.0, babel-plugin-transform-object-rest-spread@^6.26.0:
807 845 version "6.26.0"
808 846 resolved "https://registry.yarnpkg.com/babel-plugin-transform-object-rest-spread/-/babel-plugin-transform-object-rest-spread-6.26.0.tgz#0f36692d50fef6b7e2d4b3ac1478137a963b7b06"
809 847 dependencies:
... ... @@ -829,6 +867,12 @@ babel-plugin-transform-strict-mode@^6.24.1:
829 867 babel-runtime "^6.22.0"
830 868 babel-types "^6.24.1"
831 869  
  870 +babel-plugin-transform-vue-jsx@^3.5.0:
  871 + version "3.5.0"
  872 + resolved "https://registry.yarnpkg.com/babel-plugin-transform-vue-jsx/-/babel-plugin-transform-vue-jsx-3.5.0.tgz#6b1ad29351ad753919403675f0bf8b2a43e17671"
  873 + dependencies:
  874 + esutils "^2.0.2"
  875 +
832 876 babel-polyfill@^6.26.0:
833 877 version "6.26.0"
834 878 resolved "https://registry.yarnpkg.com/babel-polyfill/-/babel-polyfill-6.26.0.tgz#379937abc67d7895970adc621f284cd966cf2153"
... ...