Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save connorjclark/91373e45e6a9a90ca726c6623a0a7700 to your computer and use it in GitHub Desktop.
Save connorjclark/91373e45e6a9a90ca726c6623a0a7700 to your computer and use it in GitHub Desktop.
// fyi a 'plugin' is basically just a transform. idk if polyfils are considered plugins but for the purposes here say they aren't.
// https://github.com/babel/babel/blob/d919ecd254fd3a10997ab4801f11c412b2dd2152/packages/babel-preset-env/data/plugins.json
const pluginData = {"transform-template-literals":{"chrome":"41","edge":"13","firefox":"34","node":"4","samsung":"3.4","opera":"28","electron":"0.24"},"transform-literals":{"chrome":"44","edge":"12","firefox":"53","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"transform-function-name":{"chrome":"51","firefox":"53","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"transform-arrow-functions":{"chrome":"47","edge":"13","firefox":"45","safari":"10","node":"6","ios":"10","samsung":"5","opera":"34","electron":"0.36"},"transform-block-scoped-functions":{"chrome":"41","edge":"12","firefox":"46","safari":"10","node":"4","ie":"11","ios":"10","samsung":"3.4","opera":"28","electron":"0.24"},"transform-classes":{"chrome":"46","edge":"13","firefox":"45","safari":"10","node":"5","ios":"10","samsung":"5","opera":"33","electron":"0.36"},"transform-object-super":{"chrome":"46","edge":"13","firefox":"45","safari":"10","node":"5","ios":"10","samsung":"5","opera":"33","electron":"0.36"},"transform-shorthand-properties":{"chrome":"43","edge":"12","firefox":"33","safari":"9","node":"4","ios":"9","samsung":"4","opera":"30","electron":"0.29"},"transform-duplicate-keys":{"chrome":"42","edge":"12","firefox":"34","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"29","electron":"0.27"},"transform-computed-properties":{"chrome":"44","edge":"12","firefox":"34","safari":"7.1","node":"4","ios":"8","samsung":"4","opera":"31","electron":"0.31"},"transform-for-of":{"chrome":"51","edge":"15","firefox":"53","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"transform-sticky-regex":{"chrome":"49","edge":"13","firefox":"3","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"transform-dotall-regex":{"chrome":"62","safari":"11.1","node":"8.10","ios":"11.3","samsung":"8.2","opera":"49","electron":"3.1"},"transform-unicode-regex":{"chrome":"50","edge":"13","firefox":"46","safari":"12","node":"6","ios":"12","samsung":"5","opera":"37","electron":"1.1"},"transform-spread":{"chrome":"46","edge":"13","firefox":"36","safari":"10","node":"5","ios":"10","samsung":"5","opera":"33","electron":"0.36"},"transform-parameters":{"chrome":"49","edge":"18","firefox":"53","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"transform-destructuring":{"chrome":"51","edge":"15","firefox":"53","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"transform-block-scoping":{"chrome":"49","edge":"14","firefox":"51","safari":"11","node":"6","ios":"11","samsung":"5","opera":"36","electron":"1"},"transform-typeof-symbol":{"chrome":"38","edge":"12","firefox":"36","safari":"9","node":"0.12","ios":"9","samsung":"3","opera":"25","electron":"0.2"},"transform-new-target":{"chrome":"46","edge":"14","firefox":"41","safari":"10","node":"5","ios":"10","samsung":"5","opera":"33","electron":"0.36"},"transform-regenerator":{"chrome":"50","edge":"13","firefox":"53","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"transform-exponentiation-operator":{"chrome":"52","edge":"14","firefox":"52","safari":"10.1","node":"7","ios":"10.3","samsung":"6.2","opera":"39","electron":"1.3"},"transform-async-to-generator":{"chrome":"55","edge":"15","firefox":"52","safari":"11","node":"7.6","ios":"11","samsung":"6.2","opera":"42","electron":"1.6"},"proposal-async-generator-functions":{"chrome":"63","firefox":"57","safari":"12","node":"10","ios":"12","samsung":"8.2","opera":"50","electron":"3.1"},"proposal-object-rest-spread":{"chrome":"60","firefox":"55","safari":"11.1","node":"8.3","ios":"11.3","samsung":"8.2","opera":"47","electron":"2.1"},"proposal-unicode-property-regex":{"chrome":"64","safari":"11.1","node":"10","ios":"11.3","opera":"51","electron":"3.1"},"proposal-json-strings":{"chrome":"66","firefox":"62","safari":"12","node":"10","ios":"12","opera":"53","electron":"3.1"},"proposal-optional-catch-binding":{"chrome":"66","firefox":"58","safari":"11.1","node":"10","ios":"11.3","opera":"53","electron":"3.1"},"transform-named-capturing-groups-regex":{"chrome":"64","safari":"11.1","node":"10","ios":"11.3","opera":"51","electron":"3.1"},"transform-member-expression-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"5"},"transform-property-literals":{"chrome":"7","opera":"12","edge":"12","firefox":"2","safari":"5.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"5"},"transform-reserved-words":{"chrome":"13","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4.4","ios":"6","phantom":"2","samsung":"2.1","electron":"0.2"}};
// https://github.com/babel/babel/blob/d919ecd254fd3a10997ab4801f11c412b2dd2152/packages/babel-preset-env/data/corejs2-built-ins.json
const builtInsData = {"es6.array.copy-within":{"chrome":"45","edge":"12","firefox":"32","safari":"9","node":"4","ios":"9","samsung":"5","opera":"32","electron":"0.35"},"es6.array.every":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.fill":{"chrome":"45","edge":"12","firefox":"31","safari":"7.1","node":"4","ios":"8","samsung":"5","opera":"32","electron":"0.35"},"es6.array.filter":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.find":{"chrome":"45","edge":"12","firefox":"25","safari":"7.1","node":"4","ios":"8","samsung":"5","opera":"32","electron":"0.35"},"es6.array.find-index":{"chrome":"45","edge":"12","firefox":"25","safari":"7.1","node":"4","ios":"8","samsung":"5","opera":"32","electron":"0.35"},"es7.array.flat-map":{"chrome":"69","firefox":"62","safari":"12","node":"11","ios":"12","opera":"56","electron":"4"},"es6.array.for-each":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.from":{"chrome":"51","edge":"15","firefox":"36","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es7.array.includes":{"chrome":"47","edge":"14","firefox":"43","safari":"10","node":"6","ios":"10","samsung":"5","opera":"34","electron":"0.36"},"es6.array.index-of":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.is-array":{"chrome":"5","opera":"10.50","edge":"12","firefox":"4","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.iterator":{"chrome":"38","edge":"12","firefox":"28","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.array.last-index-of":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.map":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.of":{"chrome":"45","edge":"12","firefox":"25","safari":"9","node":"4","ios":"9","samsung":"5","opera":"32","electron":"0.35"},"es6.array.reduce":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.reduce-right":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.some":{"chrome":"5","opera":"10.10","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.array.sort":{"chrome":"63","opera":"50","edge":"12","firefox":"5","safari":"12","node":"10","ie":"9","ios":"12","samsung":"8.2","electron":"3.1"},"es6.array.species":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.date.now":{"chrome":"5","opera":"10.50","edge":"12","firefox":"2","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.date.to-iso-string":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3.5","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.date.to-json":{"chrome":"5","opera":"12.10","edge":"12","firefox":"4","safari":"10","node":"0.10","ie":"9","android":"4","ios":"10","samsung":"2.1","electron":"1.1"},"es6.date.to-primitive":{"chrome":"47","edge":"15","firefox":"44","safari":"10","node":"6","ios":"10","samsung":"5","opera":"34","electron":"0.36"},"es6.date.to-string":{"chrome":"5","opera":"10.50","edge":"12","firefox":"2","safari":"3.1","node":"0.10","ie":"10","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.function.bind":{"chrome":"7","opera":"12","edge":"12","firefox":"4","safari":"5.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"5"},"es6.function.has-instance":{"chrome":"51","edge":"15","firefox":"50","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.function.name":{"chrome":"5","opera":"10.50","edge":"14","firefox":"2","safari":"4","node":"0.10","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.map":{"chrome":"51","edge":"15","firefox":"53","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.math.acosh":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.asinh":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.atanh":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.cbrt":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.clz32":{"chrome":"38","edge":"12","firefox":"31","safari":"9","node":"0.12","ios":"9","samsung":"3","opera":"25","electron":"0.2"},"es6.math.cosh":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.expm1":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.fround":{"chrome":"38","edge":"12","firefox":"26","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.hypot":{"chrome":"38","edge":"12","firefox":"27","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.imul":{"chrome":"30","edge":"12","firefox":"23","safari":"7","node":"0.12","android":"4.4","ios":"7","samsung":"2.1","opera":"17","electron":"0.2"},"es6.math.log1p":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.log10":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.log2":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.sign":{"chrome":"38","edge":"12","firefox":"25","safari":"9","node":"0.12","ios":"9","samsung":"3","opera":"25","electron":"0.2"},"es6.math.sinh":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.tanh":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.math.trunc":{"chrome":"38","edge":"12","firefox":"25","safari":"7.1","node":"0.12","ios":"8","samsung":"3","opera":"25","electron":"0.2"},"es6.number.constructor":{"chrome":"41","edge":"12","firefox":"36","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.number.epsilon":{"chrome":"34","edge":"12","firefox":"25","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.number.is-finite":{"chrome":"19","edge":"12","firefox":"16","safari":"9","node":"0.12","android":"4.1","ios":"9","samsung":"2.1","electron":"0.2"},"es6.number.is-integer":{"chrome":"34","edge":"12","firefox":"16","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.number.is-nan":{"chrome":"19","edge":"12","firefox":"15","safari":"9","node":"0.12","android":"4.1","ios":"9","samsung":"2.1","electron":"0.2"},"es6.number.is-safe-integer":{"chrome":"34","edge":"12","firefox":"32","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.number.max-safe-integer":{"chrome":"34","edge":"12","firefox":"31","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.number.min-safe-integer":{"chrome":"34","edge":"12","firefox":"31","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.number.parse-float":{"chrome":"34","edge":"12","firefox":"25","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.number.parse-int":{"chrome":"34","edge":"12","firefox":"25","safari":"9","node":"0.12","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es6.object.assign":{"chrome":"49","edge":"13","firefox":"36","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.object.create":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es7.object.define-getter":{"chrome":"62","edge":"16","firefox":"48","safari":"9","node":"8.10","ios":"9","samsung":"8.2","opera":"49","electron":"3.1"},"es7.object.define-setter":{"chrome":"62","edge":"16","firefox":"48","safari":"9","node":"8.10","ios":"9","samsung":"8.2","opera":"49","electron":"3.1"},"es6.object.define-property":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"5.1","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.object.define-properties":{"chrome":"5","opera":"12","edge":"12","firefox":"4","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es7.object.entries":{"chrome":"54","edge":"14","firefox":"47","safari":"10.1","node":"7","ios":"10.3","samsung":"6.2","opera":"41","electron":"1.5"},"es6.object.freeze":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es6.object.get-own-property-descriptor":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es7.object.get-own-property-descriptors":{"chrome":"54","edge":"15","firefox":"50","safari":"10.1","node":"7","ios":"10.3","samsung":"6.2","opera":"41","electron":"1.5"},"es6.object.get-own-property-names":{"chrome":"40","edge":"12","firefox":"33","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"27","electron":"0.21"},"es6.object.get-prototype-of":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es7.object.lookup-getter":{"chrome":"62","firefox":"36","safari":"9","node":"8.10","ios":"9","samsung":"8.2","opera":"49","electron":"3.1"},"es7.object.lookup-setter":{"chrome":"62","firefox":"36","safari":"9","node":"8.10","ios":"9","samsung":"8.2","opera":"49","electron":"3.1"},"es6.object.prevent-extensions":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es6.object.to-string":{"chrome":"57","edge":"15","firefox":"51","safari":"10","node":"8","ios":"10","samsung":"7.2","opera":"44","electron":"1.7"},"es6.object.is":{"chrome":"19","edge":"12","firefox":"22","safari":"9","node":"0.12","android":"4.1","ios":"9","samsung":"2.1","electron":"0.2"},"es6.object.is-frozen":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es6.object.is-sealed":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es6.object.is-extensible":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es6.object.keys":{"chrome":"40","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"27","electron":"0.21"},"es6.object.seal":{"chrome":"44","edge":"12","firefox":"35","safari":"9","node":"4","ios":"9","samsung":"4","opera":"31","electron":"0.31"},"es6.object.set-prototype-of":{"chrome":"34","edge":"12","firefox":"31","safari":"9","node":"0.12","ie":"11","ios":"9","samsung":"2.1","opera":"21","electron":"0.2"},"es7.object.values":{"chrome":"54","edge":"14","firefox":"47","safari":"10.1","node":"7","ios":"10.3","samsung":"6.2","opera":"41","electron":"1.5"},"es6.promise":{"chrome":"51","edge":"14","firefox":"45","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es7.promise.finally":{"chrome":"63","edge":"18","firefox":"58","safari":"11.1","node":"10","ios":"11.3","samsung":"8.2","opera":"50","electron":"3.1"},"es6.reflect.apply":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.construct":{"chrome":"49","edge":"13","firefox":"49","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.define-property":{"chrome":"49","edge":"13","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.delete-property":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.get":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.get-own-property-descriptor":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.get-prototype-of":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.has":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.is-extensible":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.own-keys":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.prevent-extensions":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.set":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.reflect.set-prototype-of":{"chrome":"49","edge":"12","firefox":"42","safari":"10","node":"6","ios":"10","samsung":"5","opera":"36","electron":"1"},"es6.regexp.constructor":{"chrome":"50","firefox":"40","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"es6.regexp.flags":{"chrome":"49","firefox":"37","safari":"9","node":"6","ios":"9","samsung":"5","opera":"36","electron":"1"},"es6.regexp.match":{"chrome":"50","firefox":"49","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"es6.regexp.replace":{"chrome":"50","firefox":"49","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"es6.regexp.split":{"chrome":"50","firefox":"49","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"es6.regexp.search":{"chrome":"50","firefox":"49","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"es6.regexp.to-string":{"chrome":"50","firefox":"39","safari":"10","node":"6","ios":"10","samsung":"5","opera":"37","electron":"1.1"},"es6.set":{"chrome":"51","edge":"15","firefox":"53","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.symbol":{"chrome":"51","firefox":"51","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es7.symbol.async-iterator":{"chrome":"63","firefox":"57","safari":"12","node":"10","ios":"12","samsung":"8.2","opera":"50","electron":"3.1"},"es6.string.anchor":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.big":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.blink":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.bold":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.code-point-at":{"chrome":"41","edge":"12","firefox":"29","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.ends-with":{"chrome":"41","edge":"12","firefox":"29","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.fixed":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.fontcolor":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.fontsize":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.from-code-point":{"chrome":"41","edge":"12","firefox":"29","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.includes":{"chrome":"41","edge":"12","firefox":"40","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.italics":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.iterator":{"chrome":"38","edge":"12","firefox":"36","safari":"9","node":"0.12","ios":"9","samsung":"3","opera":"25","electron":"0.2"},"es6.string.link":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es7.string.pad-start":{"chrome":"57","edge":"15","firefox":"48","safari":"10","node":"8","ios":"10","samsung":"7.2","opera":"44","electron":"1.7"},"es7.string.pad-end":{"chrome":"57","edge":"15","firefox":"48","safari":"10","node":"8","ios":"10","samsung":"7.2","opera":"44","electron":"1.7"},"es6.string.raw":{"chrome":"41","edge":"12","firefox":"34","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.repeat":{"chrome":"41","edge":"12","firefox":"24","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.small":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.starts-with":{"chrome":"41","edge":"12","firefox":"29","safari":"9","node":"4","ios":"9","samsung":"3.4","opera":"28","electron":"0.24"},"es6.string.strike":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.sub":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.sup":{"chrome":"5","edge":"12","firefox":"17","safari":"6","node":"0.10","android":"4","ios":"7","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.string.trim":{"chrome":"5","opera":"10.50","edge":"12","firefox":"3.5","safari":"4","node":"0.10","ie":"9","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es7.string.trim-left":{"chrome":"66","firefox":"61","safari":"12","node":"10","ios":"12","opera":"53","electron":"3.1"},"es7.string.trim-right":{"chrome":"66","firefox":"61","safari":"12","node":"10","ios":"12","opera":"53","electron":"3.1"},"es6.typed.array-buffer":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.data-view":{"chrome":"5","opera":"12","edge":"12","firefox":"15","safari":"5.1","node":"0.10","ie":"10","android":"4","ios":"6","phantom":"2","samsung":"2.1","electron":"1.1"},"es6.typed.int8-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.uint8-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.uint8-clamped-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.int16-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.uint16-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.int32-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.uint32-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.float32-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.typed.float64-array":{"chrome":"51","edge":"13","firefox":"48","safari":"10","node":"6.5","ios":"10","samsung":"5","opera":"38","electron":"1.2"},"es6.weak-map":{"chrome":"51","edge":"15","firefox":"53","safari":"9","node":"6.5","ios":"9","samsung":"5","opera":"38","electron":"1.2"},"es6.weak-set":{"chrome":"51","edge":"15","firefox":"53","safari":"9","node":"6.5","ios":"9","samsung":"5","opera":"38","electron":"1.2"}};
// output of babel-preset-env w/ debug: true and esmodules: true. Both the `plugins` and the `polyfils`.
const output = `
transform-template-literals { "ios":"10.3", "safari":"10.1" }
transform-function-name { "edge":"16" }
transform-dotall-regex { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
transform-unicode-regex { "ios":"10.3", "safari":"10.1" }
transform-parameters { "edge":"16" }
transform-block-scoping { "ios":"10.3", "safari":"10.1" }
transform-async-to-generator { "ios":"10.3", "safari":"10.1" }
proposal-async-generator-functions { "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" }
proposal-object-rest-spread { "edge":"16", "ios":"10.3", "safari":"10.1" }
proposal-unicode-property-regex { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
proposal-json-strings { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
proposal-optional-catch-binding { "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" }
transform-named-capturing-groups-regex { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
es7.array.flat-map { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
es6.array.sort { "chrome":"61", "ios":"10.3", "opera":"48", "safari":"10.1" }
es6.number.is-finite { "opera":"48" }
es6.number.is-nan { "opera":"48" }
es7.object.define-getter { "chrome":"61", "opera":"48" }
es7.object.define-setter { "chrome":"61", "opera":"48" }
es7.object.lookup-getter { "chrome":"61", "edge":"16", "opera":"48" }
es7.object.lookup-setter { "chrome":"61", "edge":"16", "opera":"48" }
es6.object.is { "opera":"48" }
es7.promise.finally { "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" }
es6.regexp.constructor { "edge":"16" }
es6.regexp.flags { "edge":"16" }
es6.regexp.match { "edge":"16" }
es6.regexp.replace { "edge":"16" }
es6.regexp.split { "edge":"16" }
es6.regexp.search { "edge":"16" }
es6.regexp.to-string { "edge":"16" }
es6.symbol { "edge":"16" }
es7.symbol.async-iterator { "chrome":"61", "edge":"16", "ios":"10.3", "opera":"48", "safari":"10.1" }
es6.string.anchor { "opera":"48" }
es6.string.big { "opera":"48" }
es6.string.blink { "opera":"48" }
es6.string.bold { "opera":"48" }
es6.string.fixed { "opera":"48" }
es6.string.fontcolor { "opera":"48" }
es6.string.fontsize { "opera":"48" }
es6.string.italics { "opera":"48" }
es6.string.link { "opera":"48" }
es6.string.small { "opera":"48" }
es6.string.strike { "opera":"48" }
es6.string.sub { "opera":"48" }
es6.string.sup { "opera":"48" }
es7.string.trim-left { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
es7.string.trim-right { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
web.timers { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
web.immediate { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
web.dom.iterable { "chrome":"61", "edge":"16", "firefox":"60", "ios":"10.3", "opera":"48", "safari":"10.1" }
`;
// This is everything that we _should not_ check for.
const pluginsAndPolyfillsUsed = new Set(output.trim().split('\n').map(line => line.split(' ')[0]).filter(Boolean));
const pluginsNotUsed = Object.keys(pluginData).filter(plugin => !pluginsAndPolyfillsUsed.has(plugin));
const polyfillsNotUsed = Object.keys(builtInsData).filter(plugin => !pluginsAndPolyfillsUsed.has(plugin));
// This is everything that we _could_ check for.
const notUsed = [...pluginsNotUsed, ...polyfillsNotUsed];
console.log(notUsed.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment