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.16.0 to 2.17.0

8

dist/index.d.ts

@@ -1,5 +0,3 @@

import esbuildLoader from './loader';
import ESBuildPlugin from './plugin';
import ESBuildMinifyPlugin from './minify-plugin';
export default esbuildLoader;
export { ESBuildPlugin, ESBuildMinifyPlugin };
export { default } from './loader';
export { default as ESBuildPlugin } from './plugin';
export { default as ESBuildMinifyPlugin } from './minify-plugin';

@@ -6,8 +6,8 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ESBuildMinifyPlugin = exports.ESBuildPlugin = void 0;
const loader_1 = __importDefault(require("./loader"));
const plugin_1 = __importDefault(require("./plugin"));
exports.ESBuildPlugin = plugin_1.default;
const minify_plugin_1 = __importDefault(require("./minify-plugin"));
exports.ESBuildMinifyPlugin = minify_plugin_1.default;
exports.default = loader_1.default;
exports.ESBuildMinifyPlugin = exports.ESBuildPlugin = exports.default = void 0;
var loader_1 = require("./loader");
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(loader_1).default; } });
var plugin_1 = require("./plugin");
Object.defineProperty(exports, "ESBuildPlugin", { enumerable: true, get: function () { return __importDefault(plugin_1).default; } });
var minify_plugin_1 = require("./minify-plugin");
Object.defineProperty(exports, "ESBuildMinifyPlugin", { enumerable: true, get: function () { return __importDefault(minify_plugin_1).default; } });
import { transform, TransformOptions } from 'esbuild';
import { Except } from 'type-fest';
declare type Filter = string | RegExp;

@@ -7,2 +6,5 @@ declare type Implementation = {

};
declare type Except<ObjectType, Properties> = {
[Key in keyof ObjectType as (Key extends Properties ? never : Key)]: ObjectType[Key];
};
declare type LoaderOptions = Except<TransformOptions, 'sourcemap' | 'sourcefile'> & {

@@ -9,0 +11,0 @@ /** Pass a custom esbuild implementation */

@@ -30,3 +30,3 @@ "use strict";

const done = this.async();
const options = loader_utils_1.getOptions(this);
const options = (0, loader_utils_1.getOptions)(this);
const { implementation, ...esbuildTransformOptions } = options;

@@ -33,0 +33,0 @@ if (implementation && typeof implementation.transform !== 'function') {

@@ -9,4 +9,4 @@ "use strict";

const { version } = require('../package.json');
const isJsFile = /\.[cm]?js(\?.*)?$/i;
const isCssFile = /\.css(\?.*)?$/i;
const isJsFile = /\.[cm]?js(?:\?.*)?$/i;
const isCssFile = /\.css(?:\?.*)?$/i;
const pluginName = 'esbuild-minify';

@@ -71,3 +71,3 @@ const granularMinifyConfigs = ['minifyIdentifiers', 'minifySyntax', 'minifyWhitespace'];

|| (minifyCss && isCssFile.test(asset.name)))
&& ModuleFilenameHelpers_js_1.matchObject({ include, exclude }, asset.name)));
&& (0, ModuleFilenameHelpers_js_1.matchObject)({ include, exclude }, asset.name)));
await Promise.all(assets.map(async (asset) => {

@@ -74,0 +74,0 @@ const assetIsCss = isCssFile.test(asset.name);

{
"name": "esbuild-loader",
"version": "2.16.0",
"version": "2.17.0",
"description": "⚡️ Speed up your Webpack build with esbuild",

@@ -43,3 +43,3 @@ "keywords": [

"dependencies": {
"esbuild": "^0.13.4",
"esbuild": "^0.14.2",
"joycon": "^3.0.1",

@@ -49,25 +49,25 @@ "json5": "^2.2.0",

"tapable": "^2.2.0",
"type-fest": "^1.4.0",
"webpack-sources": "^2.2.0"
},
"devDependencies": {
"@pvtnbr/eslint-config-typescript": "^0.1.22",
"@types/jest": "^27.0.1",
"@pvtnbr/eslint-config": "^0.7.1",
"@types/jest": "^27.0.3",
"@types/loader-utils": "^2.0.3",
"@types/webpack": "^4.41.30",
"@types/webpack": "^4.41.32",
"css-loader": "^5.2.0",
"eslint": "^7.32.0",
"eslint": "^8.4.1",
"husky": "^4.3.8",
"jest": "^27.0.6",
"lint-staged": "^11.1.2",
"memfs": "^3.2.2",
"jest": "^27.4.4",
"lint-staged": "^12.1.2",
"memfs": "^3.4.0",
"mini-css-extract-plugin": "^1.4.0",
"typescript": "^4.3.5",
"typescript": "^4.5.3",
"unionfs": "^4.4.0",
"webpack": "^4.44.2",
"webpack-test-utils": "^1.1.0",
"webpack5": "npm:webpack@^5.0.0"
},
"eslintConfig": {
"extends": "@pvtnbr/eslint-config-typescript"
"extends": "@pvtnbr"
}
}
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