Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy

This commit is contained in:
Nuckyz 2024-05-24 05:19:20 -03:00
commit ff9cc2e9e5
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -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
// 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,