mirror of https://github.com/webpack/webpack.git
return if undefined
This commit is contained in:
parent
d76f72e0c7
commit
e29e3cdc0d
|
|
@ -208,7 +208,7 @@ class ContainerEntryModule extends Module {
|
|||
");"
|
||||
])};`,
|
||||
`var init = ${runtimeTemplate.basicFunction("shareScope", [
|
||||
`if (!${RuntimeGlobals.shareScopeMap}) throw new Error("Container has no share scope to initialization")`,
|
||||
`if (!${RuntimeGlobals.shareScopeMap}) return;`,
|
||||
`var oldScope = ${RuntimeGlobals.shareScopeMap}[${JSON.stringify(
|
||||
this._shareScope
|
||||
)}];`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue