Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(guides): refine code-splitting code snippets #6279

Merged
merged 2 commits into from
Jul 19, 2022

Conversation

Matin297
Copy link
Contributor

@Matin297 Matin297 commented Jul 16, 2022

remove extra call to createElement method in Dynamic Imports section of the code splitting guide.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 16, 2022

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: Matin297 / name: Matin (aka asma) (03aeb82)

@vercel
Copy link

vercel bot commented Jul 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
webpack-js-org ✅ Ready (Inspect) Visit Preview Jul 18, 2022 at 3:03AM (UTC)

@chenxsan
Copy link
Member

I think there's another line needed to be removed right below:

CleanShot 2022-07-17 at 21 02 11@2x

Dynamic imports section:
as the first call to createElement was removed in the first occurrence of src/index.js, It needed to be added in the second example that uses promises.
@Matin297
Copy link
Contributor Author

Matin297 commented Jul 18, 2022

I think there's another line needed to be removed right below:

CleanShot 2022-07-17 at 21 02 11@2x

Good catch! I believe due to the changes I made, this line needs a "+" sign right before it, since the second call has a "-" in this code snippet. I applied the changes.

@Matin297 Matin297 changed the title Update code-splitting.mdx docs(guides): refine code-splitting code snippets Jul 18, 2022
Copy link
Member

@chenxsan chenxsan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@chenxsan chenxsan merged commit c66cdf4 into webpack:master Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants