Skip to content

Commit a410cb2

Browse files
committed
fix(component): fix loadComponent (typo)
1 parent c61681d commit a410cb2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

packages/component/src/loadComponents.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@ export default function loadComponents(loadableState) {
4040
invariant(WEBPACK, '`loadComponents()` is only compatible with Webpack')
4141

4242
return Promise.all(
43-
loadableState.map(chunk => __webpack_require__.e(chunk)).catch(error => {
44-
// We can safely ignore "missing" type errors
45-
// we just want the bundle to be loaded, not the module installed
46-
if (error.message.match(/missing:/)) return
47-
throw error
48-
}),
43+
loadableState.map(chunk =>
44+
__webpack_require__.e(chunk).catch(error => {
45+
// We can safely ignore "missing" type errors
46+
// we just want the bundle to be loaded, not the module installed
47+
if (error.message.match(/missing:/)) return
48+
throw error
49+
}),
50+
),
4951
).catch(error => {
5052
warn('`loadComponents()` has failed')
5153
warn(error)

0 commit comments

Comments
 (0)