Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Remove prefetch for async components#132

Merged
ayusharma merged 2 commits intomasterfrom
remove-prefetch-for-async-components
Jul 22, 2019
Merged

Remove prefetch for async components#132
ayusharma merged 2 commits intomasterfrom
remove-prefetch-for-async-components

Conversation

@colbat
Copy link
Copy Markdown
Collaborator

@colbat colbat commented Jul 22, 2019

Reference issue: #129

What changed in this PR:

Removes prefetch for asynchronously mounted components.

args[args.length - 1].value
}"`
: '',
'webpackPrefetch: true',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can probably get rid of the array and the .filter(Boolean).join(',') and have only:

value: path.get('key').is('StringLiteral')
    ? `webpackChunkName: "${args[args.length - 1].value}"`
    : '',

What do you think?

Comment thread CHANGELOG.md
@@ -1,5 +1,6 @@
## master
- Do not log warning for component first emission in `melody-streams` in production [#128](https://github.com/trivago/melody/pull/128)
- Removes prefetch for asynchronously mounted components [#129](https://github.com/trivago/melody/issues/129)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be more clear if we had Removes webpackPrefetch...

@ayusharma ayusharma merged commit c815194 into master Jul 22, 2019
@ayusharma ayusharma deleted the remove-prefetch-for-async-components branch July 22, 2019 14:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants