Skip to content

Commit afa1be1

Browse files
authored
Update migrating.md
Under "Code Splitting with ES2015," the function inside `then()` should return `module.default`.
1 parent 9eeeb45 commit afa1be1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guides/migrating.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ webpack treats `import()` as a split-point and puts the requested module in a se
282282
``` js
283283
function onClick() {
284284
import("./module").then(module => {
285-
module.default;
285+
return module.default;
286286
}).catch(err => {
287287
console.log("Chunk loading failed");
288288
});

0 commit comments

Comments
 (0)