From 3d9ab805d5518e0f6d15f0445b7725017bb6829a Mon Sep 17 00:00:00 2001 From: xiaolei <1017653702@qq.com> Date: Mon, 15 Jul 2024 20:51:46 +0800 Subject: [PATCH] [fix]else callback --- packages/webpack-plugin/lib/resolver/DynamicRuntimePlugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/webpack-plugin/lib/resolver/DynamicRuntimePlugin.js b/packages/webpack-plugin/lib/resolver/DynamicRuntimePlugin.js index cd2c93f34e..de152bd70c 100644 --- a/packages/webpack-plugin/lib/resolver/DynamicRuntimePlugin.js +++ b/packages/webpack-plugin/lib/resolver/DynamicRuntimePlugin.js @@ -20,8 +20,9 @@ module.exports = class DynamicRuntimePlugin { if (matchCondition(resourcePath, matcher)) { request.path = addInfix(request.path, 'empty', extname) resolver.doResolve(target, request, 'resolve dynamicRenderMixin empty file', resolveContext, callback) + } else { + callback() } - callback() }) } }