Commit graph

10 commits

Author SHA1 Message Date
Jonathan Clem
a49bf6b2cd
Search the cwd first, then existing module paths 2021-04-21 18:10:10 -04:00
Jonathan Clem
256da4ea4d
Update src/wrap-require.ts
Co-authored-by: Josh Gross <joshmgross@github.com>
2021-04-21 17:46:09 -04:00
Jonathan Clem
b0e12e725b
Add Webpack comment vis-a-vis eval 2021-04-21 17:12:33 -04:00
Jonathan Clem
7e12bd7395
Call resolve, then require 2021-04-21 17:10:11 -04:00
Jonathan Clem
d37f92ff11
Test eval 2021-04-21 17:06:36 -04:00
Jonathan Clem
f57c84a8e8
Try global.module 2021-04-21 17:04:41 -04:00
Jonathan Clem
ade5cea985
Use concat for paths 2021-04-21 17:02:53 -04:00
Jonathan Clem
c1c139b0ab
Add a catch to support requiring installed modules 2021-04-21 16:58:37 -04:00
Jonathan Clem
c416f56b51
Pass nativeRequire, as well 2021-04-21 16:40:48 -04:00
Jonathan Clem
75e3a5b35d
Move wrapRequire to its own module 2021-04-21 16:37:24 -04:00