copy-webpack-plugin
Advanced tools
Comparing version 9.1.0 to 10.0.0
@@ -12,4 +12,2 @@ "use strict"; | ||
var _globby = _interopRequireDefault(require("globby")); | ||
var _serializeJavascript = _interopRequireDefault(require("serialize-javascript")); | ||
@@ -94,3 +92,3 @@ | ||
static async runPattern(compiler, compilation, logger, cache, inputPattern, index) { | ||
static async runPattern(globby, compiler, compilation, logger, cache, inputPattern, index) { | ||
const { | ||
@@ -201,3 +199,3 @@ RawSource | ||
try { | ||
paths = await (0, _globby.default)(pattern.glob, pattern.globOptions); | ||
paths = await globby(pattern.glob, pattern.globOptions); | ||
} catch (error) { | ||
@@ -479,2 +477,3 @@ compilation.errors.push(error); | ||
const cache = compilation.getCache("CopyWebpackPlugin"); | ||
let globby; | ||
compilation.hooks.processAssets.tapAsync({ | ||
@@ -484,2 +483,13 @@ name: "copy-webpack-plugin", | ||
}, async (unusedAssets, callback) => { | ||
if (typeof globby === "undefined") { | ||
try { | ||
({ | ||
globby | ||
} = await import("globby")); | ||
} catch (error) { | ||
callback(error); | ||
return; | ||
} | ||
} | ||
logger.log("starting to add additional assets..."); | ||
@@ -492,3 +502,3 @@ const assetMap = new Map(); | ||
try { | ||
assets = await CopyPlugin.runPattern(compiler, compilation, logger, cache, item, index); | ||
assets = await CopyPlugin.runPattern(globby, compiler, compilation, logger, cache, item, index); | ||
} catch (error) { | ||
@@ -495,0 +505,0 @@ compilation.errors.push(error); |
{ | ||
"name": "copy-webpack-plugin", | ||
"version": "9.1.0", | ||
"version": "10.0.0", | ||
"description": "Copy files && directories with webpack", | ||
@@ -16,3 +16,3 @@ "license": "MIT", | ||
"engines": { | ||
"node": ">= 12.13.0" | ||
"node": ">= 12.20.0" | ||
}, | ||
@@ -46,5 +46,5 @@ "scripts": { | ||
"glob-parent": "^6.0.1", | ||
"globby": "^11.0.3", | ||
"globby": "^12.0.2", | ||
"normalize-path": "^3.0.0", | ||
"schema-utils": "^3.1.1", | ||
"schema-utils": "^4.0.0", | ||
"serialize-javascript": "^6.0.0" | ||
@@ -55,5 +55,6 @@ }, | ||
"@babel/core": "^7.15.0", | ||
"@babel/eslint-parser": "^7.16.3", | ||
"@babel/preset-env": "^7.15.0", | ||
"@commitlint/cli": "^14.1.0", | ||
"@commitlint/config-conventional": "^14.1.0", | ||
"@commitlint/cli": "^15.0.0", | ||
"@commitlint/config-conventional": "^15.0.0", | ||
"@webpack-contrib/eslint-config-webpack": "^3.0.0", | ||
@@ -71,3 +72,3 @@ "babel-jest": "^27.0.6", | ||
"jest": "^27.0.6", | ||
"lint-staged": "^11.1.2", | ||
"lint-staged": "^12.0.2", | ||
"memfs": "^3.2.2", | ||
@@ -78,3 +79,3 @@ "mkdirp": "^1.0.4", | ||
"standard-version": "^9.3.1", | ||
"webpack": "^5.50.0" | ||
"webpack": "^5.64.1" | ||
}, | ||
@@ -81,0 +82,0 @@ "keywords": [ |
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
64796
770
25
+ Addedajv@8.17.1(transitive)
+ Addedajv-formats@2.1.1(transitive)
+ Addedajv-keywords@5.1.0(transitive)
+ Addedarray-union@3.0.1(transitive)
+ Addedfast-uri@3.0.2(transitive)
+ Addedglobby@12.2.0(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
+ Addedschema-utils@4.2.0(transitive)
+ Addedslash@4.0.0(transitive)
- Removedarray-union@2.1.0(transitive)
- Removedglobby@11.1.0(transitive)
- Removedslash@3.0.0(transitive)
Updatedglobby@^12.0.2
Updatedschema-utils@^4.0.0