diff --git a/framework/core/js/src/common/ExportRegistry.ts b/framework/core/js/src/common/ExportRegistry.ts index 3cbe5fcdfa..a5597e74ec 100644 --- a/framework/core/js/src/common/ExportRegistry.ts +++ b/framework/core/js/src/common/ExportRegistry.ts @@ -211,7 +211,16 @@ export default class ExportRegistry implements IExportRegistry, IChunkRegistry { // @ts-ignore const wr = this._webpack_runtimes[namespace] ?? __webpack_require__; - return await wr.e(module.chunkId).then(wr.bind(wr, module.moduleId)); + return await wr + .e(module.chunkId) + .then(wr.bind(wr, module.moduleId)) + .then(() => { + const m = this.get(namespace, id); + + m.default ??= m; + + return m; + }); } public clear(): void {