Socket
Socket
Sign inDemoInstall

esbuild-loader

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esbuild-loader - npm Package Compare versions

Comparing version 2.15.0 to 2.15.1

4

dist/minify-plugin.js

@@ -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.

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