diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 874687c8a..918446935 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -18,7 +18,7 @@ const initCallbackRegex = canonicalizeMatch(/{return \i\(".+?"\)}/); const modulesProxyhandler: ProxyHandler = { ...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) => { const mod = Reflect.get(target, p);