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

fix(gatsby): Webpack /* webpackPrefetch/webpackPreload */ comments causing a bug #20403

Merged
merged 4 commits into from
Jan 6, 2020

Conversation

ThewBear
Copy link
Contributor

@ThewBear ThewBear commented Jan 3, 2020

Description

When using /* webpackPreload */ or /* webpackPrefetch */, the webpack-runtime and app scripts is not included in the rendered html. The cause is using lodash.merge to merge chunks array deletes some items in the chunks array.

@ThewBear ThewBear requested a review from a team as a code owner January 3, 2020 16:34
@ThewBear ThewBear changed the title [gatsby] Webpack /* webpackPrefetch/webpackPreload */ comments causing a bug fix(gatsby): Webpack /* webpackPrefetch/webpackPreload */ comments causing a bug Jan 3, 2020
Copy link
Contributor

@pvdz pvdz left a comment

Choose a reason for hiding this comment

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

Wow that's super confusing. Thank you for making this PR!

@pvdz pvdz merged commit 1b89b10 into gatsbyjs:master Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants