Skip to content

Commit

Permalink
Fetch module's code from sourceStrings when using .toString (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexisother authored Nov 8, 2023
1 parent aac9b66 commit 5d31260
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/renderer/modules/webpack/patch-load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async function patchChunk(chunk: WebpackChunk): Promise<void> {
} catch {}
}
};
modules[id].toString = () => sourceStrings[id];
}
}

Expand Down

0 comments on commit 5d31260

Please sign in to comment.