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

Do not produce undefined reexports when reexporting from entry points and refactor chunk linking #2885

Merged
merged 2 commits into from May 31, 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:
Resolves #2877

Description

Previously, chunk linking was a slightly convoluted process where it was not always clear where an import of one chunk would become an export of another. This caused issues as in #2877. This PR fixes this by creating a clear step where all internal and external chunk imports and exports are generated together and separates the phase where facade chunks are created.

As a slight change, this PR will change the logic when imports are shortened to attempt to use the first letter of the import if it is still available. This should produce nicer code for pre-minified sources.

@lukastaegert lukastaegert merged commit 70b0844 into master May 31, 2019
@lukastaegert lukastaegert deleted the gh-2877-undefined-reexport branch May 31, 2019 07:36
@lukastaegert lukastaegert restored the gh-2877-undefined-reexport branch May 31, 2019 07:36
@lukastaegert lukastaegert deleted the gh-2877-undefined-reexport branch May 31, 2019 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant