Comparing version 1.2.0 to 1.3.0
@@ -57,3 +57,3 @@ var traverse = require("./traverse"); | ||
if (opts.sourceMap) { | ||
if (opts.sourceMap === "comment") { | ||
if (opts.sourceMap === "inline") { | ||
result.code += "\n" + util.sourceMapToComment(result.map); | ||
@@ -60,0 +60,0 @@ } |
{ | ||
"name": "6to5", | ||
"description": "Turn ES6 code into vanilla ES5 with source maps and no runtime", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://github.com/sebmck/6to5", |
@@ -88,3 +88,3 @@ <p align="center"> | ||
$ 6to5 script.js --source-maps-comment --out-file script-compiled.js | ||
$ 6to5 script.js --source-maps-inline --out-file script-compiled.js | ||
@@ -137,3 +137,3 @@ Compile the entire `src` directory and output it to the `lib` directory. | ||
// If truthy, adds a `map` property to returned output. | ||
// If set to "comment", the sourceMappingURL directive is added at the bottom | ||
// If set to "inline", a comment with a sourceMappingURL directive is added to the bottom | ||
sourceMap: false, | ||
@@ -140,0 +140,0 @@ |
Sorry, the diff of this file is not supported yet
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
71942