Skip to content

Commit

Permalink
fix: 修改判断条件
Browse files Browse the repository at this point in the history
  • Loading branch information
didi authored and didi committed May 29, 2024
1 parent 09cb433 commit 4ce7989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/webpack-plugin/lib/resolver/PackageEntryPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit 4ce7989

Please sign in to comment.