Skip to content

Commit 53d5a59

Browse files
committed
Merge remote-tracking branch 'origin/bugfix/mf-hmr-error' into bugfix/mf-hmr-error
2 parents 2d390a2 + 5afbaf6 commit 53d5a59

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/container/RemoteRuntimeModule.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class RemoteRuntimeModule extends RuntimeModule {
7373
Template.indent(
7474
`error.message += '\\nwhile loading "' + data[1] + '" from ' + data[2];`
7575
),
76-
`__webpack_require__.m[id] = ${runtimeTemplate.basicFunction("", [
76+
`${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction("", [
7777
"throw error;"
7878
])}`,
7979
"data.p = 0;"
@@ -111,7 +111,7 @@ class RemoteRuntimeModule extends RuntimeModule {
111111
)};`,
112112
`var onFactory = ${runtimeTemplate.basicFunction("factory", [
113113
"data.p = 1;",
114-
`__webpack_require__.m[id] = ${runtimeTemplate.basicFunction(
114+
`${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction(
115115
"module",
116116
["module.exports = factory();"]
117117
)}`

0 commit comments

Comments
 (0)