Skip to content

Commit

Permalink
LunAST: Set default require
Browse files Browse the repository at this point in the history
  • Loading branch information
NotNite committed Sep 28, 2024
1 parent beb763d commit c7b9465
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,8 @@ export async function installWebpackPatcher() {
injectModules(modules);
}

moonlight.lunast.setDefaultRequire(this);

Object.defineProperty(this, "m", {
value: modules,
configurable: true,
Expand Down

0 comments on commit c7b9465

Please sign in to comment.