Skip to content

Commit

Permalink
Unbreak API
Browse files Browse the repository at this point in the history
  • Loading branch information
Mickey Burks committed May 8, 2019
1 parent 1814364 commit bffa72b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/async/split.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ export default function withAsyncComponent<Config>({

const loadPromises = [
componentPromise,
...context.splitComponentLoaders.map(loader => loader(metadata)),
...context.splitComponentLoaders.map(loader =>
loader(metadata.chunkIds, metadata)
),
];

return Promise.all(loadPromises)
Expand Down

0 comments on commit bffa72b

Please sign in to comment.