Pass nativeRequire, as well

This commit is contained in:
Jonathan Clem
2021-04-21 16:40:48 -04:00
parent 75e3a5b35d
commit c416f56b51
5 changed files with 4 additions and 2 deletions

View File

@@ -1,7 +1,5 @@
import * as path from 'path'
declare const __non_webpack_require__: NodeRequire
export const wrapRequire = new Proxy(__non_webpack_require__, {
apply: (target, thisArg, [moduleID]) => {
if (moduleID.startsWith('.')) {