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

swc-loader

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swc-loader - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

package.json
{
"name": "swc-loader",
"version": "0.2.1",
"version": "0.2.2",
"description": "Webpack plugin for swc",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -9,3 +9,3 @@ const swc = require("@swc/core");

let loaderOptions = this.getOptions() || {};
let loaderOptions = (this.getOptions ? this.getOptions() : require('loader-utils').getOptions(this)) || {};

@@ -62,6 +62,6 @@ // Standardize on 'sourceMaps' as the key passed through to Webpack, so that

// auto detect development mode
if (this.mode && programmaticOptions.jsc && programmaticOptions.jsc.transform
&& programmaticOptions.jsc.transform.react &&
if (this.mode && programmaticOptions.jsc && programmaticOptions.jsc.transform
&& programmaticOptions.jsc.transform.react &&
!Object.prototype.hasOwnProperty.call(programmaticOptions.jsc.transform.react, "development")) {
programmaticOptions.jsc.transform.react.development = this.mode === 'development'
programmaticOptions.jsc.transform.react.development = this.mode === 'development'
}

@@ -68,0 +68,0 @@

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