From 09cb433d03b3bbb97e97876ba3173b54db78a00e Mon Sep 17 00:00:00 2001 From: didi Date: Wed, 29 May 2024 16:56:36 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20resolve=20plugin=20packageEntryPlugi?= =?UTF-8?q?n=20=E5=BE=AA=E7=8E=AFresolve=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js b/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js index 6bf9c0a439..d85fbe92e4 100644 --- a/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js +++ b/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js @@ -35,7 +35,7 @@ module.exports = class PackageEntryPlugin { relativePath: './' + toPosix(relativePath), miniprogram: true }) - + if (obj.path === request.path) return callback() resolver.doResolve(target, obj, 'add miniprogram dist: ' + miniprogram, resolveContext, callback) }) } From 4ce7989ed55e8204d97b4692d64d388ea167db19 Mon Sep 17 00:00:00 2001 From: didi Date: Wed, 29 May 2024 17:05:53 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js b/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js index d85fbe92e4..2d1770eb09 100644 --- a/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js +++ b/packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js @@ -35,7 +35,7 @@ module.exports = class PackageEntryPlugin { relativePath: './' + toPosix(relativePath), miniprogram: true }) - if (obj.path === request.path) return callback() + if (obj.path === resourcePath) return callback() resolver.doResolve(target, obj, 'add miniprogram dist: ' + miniprogram, resolveContext, callback) }) }