From 12793c0fbeb51dabf16ac489e0877472898d2120 Mon Sep 17 00:00:00 2001 From: maximilianschmelzer Date: Wed, 30 Oct 2019 18:01:20 +0100 Subject: [PATCH] docs(guides): adds missing braces in promise --- src/content/guides/code-splitting.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content/guides/code-splitting.md b/src/content/guides/code-splitting.md index f8e76b4f8554..de0df12c9946 100644 --- a/src/content/guides/code-splitting.md +++ b/src/content/guides/code-splitting.md @@ -28,6 +28,7 @@ contributors: - byzyk - AnayaDesign - wizardofhogwarts + - maximilianschmelzer related: - title: in webpack url: https://medium.com/webpack/link-rel-prefetch-preload-in-webpack-51a52358f84c @@ -259,7 +260,7 @@ __src/index.js__ ``` diff - function getComponent() { + async function getComponent() { -- return import(/* webpackChunkName: "lodash" */ 'lodash').then({ default: _ } => { +- return import(/* webpackChunkName: "lodash" */ 'lodash').then(({ default: _ }) => { - const element = document.createElement('div'); - - element.innerHTML = _.join(['Hello', 'webpack'], ' ');