esbuild-loader
Advanced tools
Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "esbuild-loader", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "author": "EGOIST", |
@@ -6,2 +6,4 @@ const { RawSource, SourceMapSource } = require('webpack-sources') | ||
const flatMap = (arr, cb) => arr.flatMap ? arr.flatMap(cb) : [].concat(...arr.map(cb)) | ||
class ESBuildMinifyPlugin { | ||
@@ -43,3 +45,3 @@ constructor(options) { | ||
async (chunks) => { | ||
const transforms = chunks.flatMap((chunk) => { | ||
const transforms = flatMap(chunks, (chunk) => { | ||
return chunk.files | ||
@@ -46,0 +48,0 @@ .filter((file) => isJsFile.test(file)) |
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
8549
138