less-loader
Advanced tools
Comparing version 10.1.0 to 10.2.0
@@ -43,2 +43,22 @@ "use strict"; | ||
const logger = this.getLogger("less-loader"); | ||
const loggerListener = { | ||
error(message) { | ||
logger.error(message); | ||
}, | ||
warn(message) { | ||
logger.warn(message); | ||
}, | ||
info(message) { | ||
logger.log(message); | ||
}, | ||
debug(message) { | ||
logger.debug(message); | ||
} | ||
}; | ||
implementation.logger.addListener(loggerListener); | ||
let result; | ||
@@ -57,6 +77,9 @@ | ||
return; | ||
} finally { | ||
// Fix memory leaks in `less` | ||
implementation.logger.removeListener(loggerListener); | ||
delete lessOptions.pluginManager.webpackLoaderContext; | ||
delete lessOptions.pluginManager; | ||
} | ||
delete lessOptions.pluginManager.webpackLoaderContext; | ||
delete lessOptions.pluginManager; | ||
const { | ||
@@ -63,0 +86,0 @@ css, |
{ | ||
"name": "less-loader", | ||
"version": "10.1.0", | ||
"version": "10.2.0", | ||
"description": "A Less loader for webpack. Compiles Less to CSS.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
33256
345