Skip to content

Commit

Permalink
fix(guides) Fix reference to default (webpack#2486)
Browse files Browse the repository at this point in the history
Just noticed this error in the documentation. The callback function already destructures the default from the parameter so `_` is already the lodash we expect.
  • Loading branch information
Alexandre Guerra Marcondes authored and montogeek committed Sep 5, 2018
1 parent 6244237 commit 0ed0575
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/content/guides/code-splitting.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ __src/index.js__
- element.innerHTML = _.join(['Hello', 'webpack'], ' ');
+ return import(/* webpackChunkName: "lodash" */ 'lodash').then(({ default: _ }) => {
+ var element = document.createElement('div');
+ var _ = _.default;
+
+ element.innerHTML = _.join(['Hello', 'webpack'], ' ');
+
Expand Down

0 comments on commit 0ed0575

Please sign in to comment.