diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index 0fe68a702..f82b82f99 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -92,10 +92,11 @@ const moduleFactoriesHandler: ProxyHandler = { } }; -// wreq.m is the webpack object containing module factories. +// wreq.m is the Webpack object containing module factories. // This is pre-populated with module factories, and is also populated via webpackGlobal.push -// The sentry module also has their own webpack with a pre-populated module factories object, so this also targets that +// The sentry module also has their own Webpack with a pre-populated module factories object, so this also targets that // We wrap it with our proxy, which is responsible for patching the module factories, or setting up getters for them +// If this is the main Webpack, we also set up the internal references to WebpackRequire Object.defineProperty(Function.prototype, "m", { configurable: true,