sometimes I'm stupid
This commit is contained in:
parent
66e1db1fdb
commit
01a4ac9c13
|
@ -18,7 +18,7 @@ const initCallbackRegex = canonicalizeMatch(/{return \i\(".+?"\)}/);
|
||||||
|
|
||||||
const modulesProxyhandler: ProxyHandler<WebpackRequire["m"]> = {
|
const modulesProxyhandler: ProxyHandler<WebpackRequire["m"]> = {
|
||||||
...Object.fromEntries(Object.getOwnPropertyNames(Reflect).map(propName =>
|
...Object.fromEntries(Object.getOwnPropertyNames(Reflect).map(propName =>
|
||||||
[propName, (target: WebpackRequire["m"], ...args: any[]) => Reflect[propName](target, ...args)]
|
[propName, (...args: any[]) => Reflect[propName](...args)]
|
||||||
)),
|
)),
|
||||||
get: (target, p) => {
|
get: (target, p) => {
|
||||||
const mod = Reflect.get(target, p);
|
const mod = Reflect.get(target, p);
|
||||||
|
|
Loading…
Reference in a new issue