Skip to content

Commit

Permalink
Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Jul 3, 2024
2 parents edba931 + 208882e commit c784bc5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/webpack/patchWebpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ function patchFactory(id: PropertyKey, factory: AnyModuleFactory) {

for (let i = 0; i < patches.length; i++) {
const patch = patches[i];
if (patch.predicate && !patch.predicate()) continue;

const moduleMatches = typeof patch.find === "string"
? code.includes(patch.find)
Expand All @@ -398,8 +397,6 @@ function patchFactory(id: PropertyKey, factory: AnyModuleFactory) {

// We change all patch.replacement to array in plugins/index
for (const replacement of patch.replacement as PatchReplacement[]) {
if (replacement.predicate && !replacement.predicate()) continue;

const lastCode = code;
const lastFactory = factory;

Expand Down

0 comments on commit c784bc5

Please sign in to comment.