Skip to content

Commit 506ed10

Browse files
maximilianschmelzermontogeek
maximilianschmelzer
authored andcommitted
docs(guides): adds missing braces in promise (#3339)
1 parent 9b343e7 commit 506ed10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/guides/code-splitting.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ contributors:
2828
- byzyk
2929
- AnayaDesign
3030
- wizardofhogwarts
31+
- maximilianschmelzer
3132
related:
3233
- title: <link rel=”prefetch/preload”> in webpack
3334
url: https://medium.com/webpack/link-rel-prefetch-preload-in-webpack-51a52358f84c
@@ -259,7 +260,7 @@ __src/index.js__
259260
``` diff
260261
- function getComponent() {
261262
+ async function getComponent() {
262-
- return import(/* webpackChunkName: "lodash" */ 'lodash').then({ default: _ } => {
263+
- return import(/* webpackChunkName: "lodash" */ 'lodash').then(({ default: _ }) => {
263264
- const element = document.createElement('div');
264265
-
265266
- element.innerHTML = _.join(['Hello', 'webpack'], ' ');

0 commit comments

Comments
 (0)