swc-loader
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"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 @@ |
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
7651