esbuild-loader
Advanced tools
Comparing version 2.15.0 to 2.15.1
@@ -16,3 +16,3 @@ "use strict"; | ||
var _a; | ||
const { implementation } = options; | ||
const { implementation, ...remainingOptions } = options; | ||
if (implementation && typeof implementation.transform !== 'function') { | ||
@@ -22,3 +22,3 @@ throw new TypeError(`ESBuildMinifyPlugin: implementation.transform must be an ESBuild transform function. Received ${typeof implementation.transform}`); | ||
this.transform = (_a = implementation === null || implementation === void 0 ? void 0 : implementation.transform) !== null && _a !== void 0 ? _a : esbuild_1.transform; | ||
this.options = { ...options }; | ||
this.options = remainingOptions; | ||
const hasGranularMinificationConfig = granularMinifyConfigs.some(minifyConfig => minifyConfig in options); | ||
@@ -25,0 +25,0 @@ if (!hasGranularMinificationConfig) { |
{ | ||
"name": "esbuild-loader", | ||
"version": "2.15.0", | ||
"version": "2.15.1", | ||
"description": "⚡️ Speed up your Webpack build with esbuild", | ||
@@ -43,3 +43,3 @@ "keywords": [ | ||
"dependencies": { | ||
"esbuild": "^0.12.19", | ||
"esbuild": "^0.12.21", | ||
"joycon": "^3.0.1", | ||
@@ -53,4 +53,4 @@ "json5": "^2.2.0", | ||
"devDependencies": { | ||
"@pvtnbr/eslint-config-typescript": "^0.1.19", | ||
"@types/jest": "^27.0.0", | ||
"@pvtnbr/eslint-config-typescript": "^0.1.22", | ||
"@types/jest": "^27.0.1", | ||
"@types/loader-utils": "^2.0.3", | ||
@@ -57,0 +57,0 @@ "@types/webpack": "^4.41.30", |
@@ -121,4 +121,2 @@ # esbuild-loader <a href="https://npm.im/esbuild-loader"><img src="https://badgen.net/npm/v/esbuild-loader"></a> <a href="https://npm.im/esbuild-loader"><img src="https://badgen.net/npm/dm/esbuild-loader"></a> <a href="https://packagephobia.now.sh/result?p=esbuild-loader"><img src="https://packagephobia.now.sh/badge?p=esbuild-loader"></a> | ||
⚠️ esbuild currently [doesn't support source-maps for CSS minification](https://github.com/evanw/esbuild/issues/519). | ||
#### CSS assets | ||
@@ -125,0 +123,0 @@ If your CSS is extracted and emitted as a CSS file, you can replace CSS minification plugins like [`css-minimizer-webpack-plugin`](https://github.com/webpack-contrib/css-minimizer-webpack-plugin) or [`optimize-css-assets-webpack-plugin`](https://github.com/NMFR/optimize-css-assets-webpack-plugin) with the same `ESBuildMinifyPlugin` by enabling the `css` option. |
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
27007
417
+ Addedelectron-to-chromium@1.5.20(transitive)
- Removedelectron-to-chromium@1.5.21(transitive)
Updatedesbuild@^0.12.21