We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ff8d973 + 76097de commit b3cf692Copy full SHA for b3cf692
1 file changed
packages/webpack-plugin/lib/react/LoadAsyncChunkModule.js
@@ -54,7 +54,7 @@ class LoadAsyncChunkRuntimeModule extends HelperRuntimeModule {
54
]),
55
'}',
56
`var timeout = setTimeout(callback.bind(null, 'timeout'), ${this.timeout})`,
57
- 'var loadChunkAsyncFn = global.__mpx.config.rnConfig && global.__mpx.config.rnConfig.loadChunkAsync',
+ `var loadChunkAsyncFn = ${RuntimeGlobals.global}.__mpx.config.rnConfig && ${RuntimeGlobals.global}.__mpx.config.rnConfig.loadChunkAsync`,
58
'try {',
59
Template.indent([
60
'loadChunkAsyncFn(config).then(callback).catch(callback)'
0 commit comments