Comparing version 2.12.0 to 2.12.1
@@ -126,3 +126,3 @@ require("./polyfill"); | ||
hookExtensions([".es6", ".es", ".js"]); | ||
hookExtensions(util.canCompile.EXTENSIONS); | ||
@@ -129,0 +129,0 @@ module.exports = function (opts) { |
@@ -15,3 +15,3 @@ require("./patch"); | ||
exports.canCompile = function (filename, altExts) { | ||
var exts = altExts || [".js", ".jsx", ".es6", ".es"]; | ||
var exts = altExts || exports.canCompile.EXTENSIONS; | ||
var ext = path.extname(filename); | ||
@@ -21,2 +21,4 @@ return _.contains(exts, ext); | ||
exports.canCompile.EXTENSIONS = [".js", ".jsx", ".es6", ".es"]; | ||
exports.isInteger = function (i) { | ||
@@ -23,0 +25,0 @@ return _.isNumber(i) && i % 1 === 0; |
@@ -13,2 +13,2 @@ # Notes | ||
* Move `super` transformation from classes into a separate transformer that also supports object expressions. | ||
* Prefix all fast transformers with `fast`, make them declare that they're a fast transformer similar to optional transformers and add a `--fast` flag to enable them all. | ||
* Remove fast transformer backwards compatibility. |
{ | ||
"name": "6to5-core", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "2.12.0", | ||
"version": "2.12.1", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/6to5/6to5", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16907
3957992