Skip to content

Commit

Permalink
Make the equire patch more compatible with others
Browse files Browse the repository at this point in the history
Signed-off-by: William So <polyipseity@gmail.com>
  • Loading branch information
polyipseity committed Jul 24, 2023
1 parent 2ec8651 commit 8bdd430
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curly-jobs-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"obsidian-terminal": patch
---

Make the `require` patch more compatible with other `require` patches.
2 changes: 1 addition & 1 deletion sources/patch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ function patchRequire(
self0.console.debug(error)
return dynamicRequireSync({}, ...args)
}
}, proto)
}) as NodeRequire
},
toString: aroundIdentityFactory(),
})
Expand Down

0 comments on commit 8bdd430

Please sign in to comment.