Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy
This commit is contained in:
commit
ff9cc2e9e5
|
@ -92,10 +92,11 @@ const moduleFactoriesHandler: ProxyHandler<PatchedModuleFactories> = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// 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
|
// 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
|
// 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", {
|
Object.defineProperty(Function.prototype, "m", {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue