Comparing version 0.1.50 to 0.1.51
@@ -18,3 +18,3 @@ "use strict"; | ||
function withSourceMap(output, options, destFile, destDir) { | ||
if (!output.map || !options.sourceMaps || options.sourceMaps === "inline") { | ||
if (!output.map || options.sourceMaps === "inline") { | ||
return { | ||
@@ -21,0 +21,0 @@ sourceCode: output.code |
@@ -97,7 +97,3 @@ "use strict"; | ||
...swcOptions, | ||
sourceFileName, | ||
// Since we're compiling everything to be merged together, | ||
// "inline" applies to the final output file, but not to the individual | ||
// files being concatenated. | ||
sourceMaps: Boolean(swcOptions.sourceMaps) | ||
sourceFileName | ||
}, cliOptions.sync, cliOptions.outFile); | ||
@@ -104,0 +100,0 @@ } |
@@ -97,4 +97,2 @@ "use strict"; | ||
}, | ||
// filename, | ||
sourceMaps: opts.sourceMaps, | ||
sourceFileName: opts.sourceFileName, | ||
@@ -105,2 +103,5 @@ sourceRoot: opts.sourceRoot, | ||
}; | ||
if (opts.sourceMaps !== undefined) { | ||
swcOptions.sourceMaps = opts.sourceMaps; | ||
} | ||
if (opts.config) { | ||
@@ -107,0 +108,0 @@ for (const cfg of opts.config){ |
@@ -88,3 +88,3 @@ "use strict"; | ||
let code = output.code; | ||
if (output.map && sourceMaps && sourceMaps !== "inline") { | ||
if (output.map && sourceMaps !== "inline") { | ||
// we've requested for a sourcemap to be written to disk | ||
@@ -91,0 +91,0 @@ const fileDirName = (0, _path).dirname(filename); |
{ | ||
"name": "@swc/cli", | ||
"version": "0.1.50", | ||
"version": "0.1.51", | ||
"description": "CLI for the swc project", | ||
@@ -5,0 +5,0 @@ "main": "lib/swc/index.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
162967
32
1725