From cba4f6486769ade15e41809014172a24370195d7 Mon Sep 17 00:00:00 2001 From: ethersage Date: Wed, 29 Jan 2020 12:01:13 -0700 Subject: [PATCH] bug(webpack): fix plugin apply --- src/webpack/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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), [] );