Comparing version 3.0.1 to 3.0.2
@@ -54,3 +54,3 @@ 'use strict'; | ||
}).forEach(function (adapter) { | ||
if (adapter.engineName === 'babel') { | ||
if (adapter.engineName === 'babel' || adapter.engineName === 'babel-core') { | ||
// Monkey-patching Babel adapter so that it doesn't try and compile all .js files | ||
@@ -57,0 +57,0 @@ adapter.extensions = ['jsx', 'es6', 'babel']; |
@@ -56,3 +56,9 @@ 'use strict'; | ||
if (compiled.sourcemap.file) { | ||
compiled.sourcemap.file = path.basename(compiled.sourcemap.file.replace('.map', '')); | ||
// Bugfix for: https://github.com/mishoo/UglifyJS2/issues/764 | ||
var nFileName = path.basename(compiled.sourcemap.file, '.map'); | ||
var ext = path.extname(nFileName); | ||
if (ext !== '.js') { | ||
nFileName = path.basename(nFileName, ext) + '.js'; | ||
} | ||
compiled.sourcemap.file = nFileName; | ||
} | ||
@@ -59,0 +65,0 @@ compiled.result = ug.code; |
{ | ||
"name": "baby-tolk", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "A file reader that promises to translate non-web assets to web assets given the available transpilers, sourcemaps and all", | ||
@@ -5,0 +5,0 @@ "main": "lib/baby-tolk.js", |
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
13154
233