Skip to content

Commit

Permalink
Fetch module's code from sourceStrings when using .toString
Browse files Browse the repository at this point in the history
  • Loading branch information
lexisother committed Nov 7, 2023
1 parent aac9b66 commit 494a341
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 494a341

Please sign in to comment.