esbuild-loader
Advanced tools
Comparing version 2.16.0 to 2.17.0
@@ -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" | ||
} | ||
} |
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
27358
7
16
+ Added@esbuild/linux-loong64@0.14.54(transitive)
+ Added@types/node@22.5.5(transitive)
+ Addedelectron-to-chromium@1.5.24(transitive)
+ Addedesbuild@0.14.54(transitive)
+ Addedesbuild-android-64@0.14.54(transitive)
+ Addedesbuild-android-arm64@0.14.54(transitive)
+ Addedesbuild-darwin-64@0.14.54(transitive)
+ Addedesbuild-darwin-arm64@0.14.54(transitive)
+ Addedesbuild-freebsd-64@0.14.54(transitive)
+ Addedesbuild-freebsd-arm64@0.14.54(transitive)
+ Addedesbuild-linux-32@0.14.54(transitive)
+ Addedesbuild-linux-64@0.14.54(transitive)
+ Addedesbuild-linux-arm@0.14.54(transitive)
+ Addedesbuild-linux-arm64@0.14.54(transitive)
+ Addedesbuild-linux-mips64le@0.14.54(transitive)
+ Addedesbuild-linux-ppc64le@0.14.54(transitive)
+ Addedesbuild-linux-riscv64@0.14.54(transitive)
+ Addedesbuild-linux-s390x@0.14.54(transitive)
+ Addedesbuild-netbsd-64@0.14.54(transitive)
+ Addedesbuild-openbsd-64@0.14.54(transitive)
+ Addedesbuild-sunos-64@0.14.54(transitive)
+ Addedesbuild-windows-32@0.14.54(transitive)
+ Addedesbuild-windows-64@0.14.54(transitive)
+ Addedesbuild-windows-arm64@0.14.54(transitive)
+ Addedterser@5.33.0(transitive)
- Removedtype-fest@^1.4.0
- Removed@types/node@22.5.4(transitive)
- Removedelectron-to-chromium@1.5.22(transitive)
- Removedesbuild@0.13.15(transitive)
- Removedesbuild-android-arm64@0.13.15(transitive)
- Removedesbuild-darwin-64@0.13.15(transitive)
- Removedesbuild-darwin-arm64@0.13.15(transitive)
- Removedesbuild-freebsd-64@0.13.15(transitive)
- Removedesbuild-freebsd-arm64@0.13.15(transitive)
- Removedesbuild-linux-32@0.13.15(transitive)
- Removedesbuild-linux-64@0.13.15(transitive)
- Removedesbuild-linux-arm@0.13.15(transitive)
- Removedesbuild-linux-arm64@0.13.15(transitive)
- Removedesbuild-linux-mips64le@0.13.15(transitive)
- Removedesbuild-linux-ppc64le@0.13.15(transitive)
- Removedesbuild-netbsd-64@0.13.15(transitive)
- Removedesbuild-openbsd-64@0.13.15(transitive)
- Removedesbuild-sunos-64@0.13.15(transitive)
- Removedesbuild-windows-32@0.13.15(transitive)
- Removedesbuild-windows-64@0.13.15(transitive)
- Removedesbuild-windows-arm64@0.13.15(transitive)
- Removedterser@5.32.0(transitive)
- Removedtype-fest@1.4.0(transitive)
Updatedesbuild@^0.14.2