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

Properly render dynamic imports when imported module is empty #2714

Merged
merged 1 commit into from Feb 23, 2019

Conversation

lukastaegert
Copy link
Member

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:
Resolve #2713

Description

The logic to render dynamic imports was only looking if the directly imported module was empty while it should have been looking at the whole chunk. Thus such a chunk would be treated as tree-shaken by some (but not all) parts of the logic, resulting in the wrong import.

@lukastaegert lukastaegert merged commit e8c078d into master Feb 23, 2019
@lukastaegert lukastaegert deleted the fix-dynamic-import-only-reexports branch February 23, 2019 13:29
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.

Code splitting build uses local name instead of chunk name
1 participant