swc-loader
Advanced tools
Comparing version 0.1.12 to 0.1.13
{ | ||
"name": "swc-loader", | ||
"version": "0.1.12", | ||
"version": "0.1.13", | ||
"description": "Webpack plugin for swc", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -61,2 +61,9 @@ const loaderUtils = require("loader-utils"); | ||
// auto detect development mode | ||
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' | ||
} | ||
if (programmaticOptions.sourceMaps === "inline") { | ||
@@ -63,0 +70,0 @@ // Babel has this weird behavior where if you set "inline", we |
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
6528
94
4