Skip to content

Commit

Permalink
fix: pretty-lint error "RuntimeGlobals.moduleFactories"
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjinyang committed Apr 2, 2022
1 parent 111a7b7 commit ceed937
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/container/RemoteRuntimeModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class RemoteRuntimeModule extends RuntimeModule {
Template.indent(
`error.message += '\\nwhile loading "' + data[1] + '" from ' + data[2];`
),
`${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction("", [
"throw error;"
])}`,
`${
RuntimeGlobals.moduleFactories
}[id] = ${runtimeTemplate.basicFunction("", ["throw error;"])}`,
"data.p = 0;"
])};`,
`var handleFunction = ${runtimeTemplate.basicFunction(
Expand Down Expand Up @@ -111,10 +111,11 @@ class RemoteRuntimeModule extends RuntimeModule {
)};`,
`var onFactory = ${runtimeTemplate.basicFunction("factory", [
"data.p = 1;",
`${RuntimeGlobals.moduleFactories}[id] = ${runtimeTemplate.basicFunction(
"module",
["module.exports = factory();"]
)}`
`${
RuntimeGlobals.moduleFactories
}[id] = ${runtimeTemplate.basicFunction("module", [
"module.exports = factory();"
])}`
])};`,
"handleFunction(__webpack_require__, data[2], 0, 0, onExternal, 1);"
])});`
Expand Down

0 comments on commit ceed937

Please sign in to comment.