diff --git a/src/webpack/patchWebpack.ts b/src/webpack/patchWebpack.ts index eb87910d7..3924fcc57 100644 --- a/src/webpack/patchWebpack.ts +++ b/src/webpack/patchWebpack.ts @@ -191,7 +191,8 @@ define(Function.prototype, "m", { define(this, "m", { value: proxiedModuleFactories }); - // Overwrite webpack's defineExports function to make exports configurable so we can overwrite them for blacklisting + // Overwrite webpack's defineExports function to define the export descriptors configurable. + // This is needed so we can later blacklist specific exports from webpack search by making them non-enumerable this.d = function (exports: object, getters: object) { for (const key in getters) { if (Object.hasOwn(getters, key) && !Object.hasOwn(exports, key)) {