Comparing version 0.1.59 to 0.1.60
@@ -39,2 +39,3 @@ "use strict"; | ||
async function concatResults(file, ...results) { | ||
let added = false; | ||
const map = new _sourceMap.SourceMapGenerator({ | ||
@@ -49,2 +50,3 @@ file, | ||
if (result.map) { | ||
added = true; | ||
const consumer = await new _sourceMap.SourceMapConsumer(result.map); | ||
@@ -75,2 +77,7 @@ const sources = new Set(); | ||
} | ||
if (!added) { | ||
return { | ||
code | ||
}; | ||
} | ||
return { | ||
@@ -77,0 +84,0 @@ code, |
@@ -62,3 +62,3 @@ #!/usr/bin/env node | ||
const { dependencies , devDependencies , } = require(cwdPackageManifestPath); | ||
const swcCoreVersion = dependencies["@swc/core"] || devDependencies["@swc/core"]; | ||
const swcCoreVersion = (dependencies === null || dependencies === void 0 ? void 0 : dependencies["@swc/core"]) || (devDependencies === null || devDependencies === void 0 ? void 0 : devDependencies["@swc/core"]); | ||
if (swcCoreVersion) { | ||
@@ -65,0 +65,0 @@ return (0, _minVersion).default(swcCoreVersion); |
{ | ||
"name": "@swc/cli", | ||
"version": "0.1.59", | ||
"version": "0.1.60", | ||
"description": "CLI for the swc project", | ||
@@ -5,0 +5,0 @@ "main": "lib/swc/index.js", |
Sorry, the diff of this file is not supported yet
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
196974
1874