Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@swc/cli

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swc/cli - npm Package Compare versions

Comparing version 0.1.50 to 0.1.51

lib/spack/index.js.map

2

lib/swc/compile.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc