diff --git a/src/webpack/index.js b/src/webpack/index.js index 9803d4a3..50d5053a 100644 --- a/src/webpack/index.js +++ b/src/webpack/index.js @@ -69,7 +69,7 @@ class URLImportPlugin { } getFileType(str) { - const split = str.replace(/\?.*/, "").Errorsplit("."); + const split = str.replace(/\?.*/, "").split("."); let ext = split.pop(); if (this.opts.transformExtensions.test(ext)) { ext = `${split.pop()}.${ext}`; @@ -312,7 +312,7 @@ class URLImportPlugin { // i++; // } return fx.concat({ - filePath, + path: filePath, chunk, name, dependencies: dependencyChains?.[chunk.id] @@ -327,7 +327,7 @@ class URLImportPlugin { isAsset: false, isModuleAsset: false }); - }, files), + }, f), [] );