babel-core
Advanced tools
Comparing version 4.4.1 to 4.4.2
@@ -16,2 +16,7 @@ # Changelog | ||
## 4.4.2 | ||
* **New Feature** | ||
* Add `moduleId` option for specifying a custom module id. | ||
## 4.4.0 | ||
@@ -18,0 +23,0 @@ |
@@ -92,3 +92,3 @@ "use strict"; | ||
"resolveModuleSource", | ||
"getModuleName", | ||
"moduleId", | ||
@@ -142,2 +142,6 @@ // legacy | ||
if (opts.moduleId) { | ||
opts.moduleIds = true; | ||
} | ||
opts.basename = path.basename(opts.filename, path.extname(opts.filename)); | ||
@@ -144,0 +148,0 @@ |
@@ -149,3 +149,3 @@ "use strict"; | ||
var opts = this.file.opts; | ||
if (opts.getModuleName) return opts.getModuleName(opts.filename); | ||
if (opts.moduleId) return opts.moduleId; | ||
@@ -152,0 +152,0 @@ var filenameRelative = opts.filenameRelative; |
{ | ||
"name": "babel-core", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "4.4.1", | ||
"version": "4.4.2", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://babeljs.io/", |
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
1589818
13463