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(compiler): prefer localName over originalName by running an empty check on originalName #5943

Merged
merged 2 commits into from
Aug 16, 2024

Conversation

christian-bromann
Copy link
Member

What is the current behavior?

GitHub Issue Number: fixes #5882

What is the new behavior?

We have missed a case where an import type can come with an empty id.

Documentation

Does this introduce a breaking change?

  • Yes
  • No

Testing

Enhanced existing unit test.

Other information

n/a

Copy link
Member

@tanner-reits tanner-reits left a comment

Choose a reason for hiding this comment

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

Double-checked a couple cases around import aliasing (last change that touched this code) and all looks good there. Only ask is to update the PR title since this was the same title as a previous PR and doesn't reflect the actual change

@christian-bromann christian-bromann changed the title fix(compiler): verify parent node when validating component members fix(compiler): prefer localName over originalName by running an empty check on originalName Aug 16, 2024
@christian-bromann christian-bromann changed the title fix(compiler): prefer localName over originalName by running an empty check on originalName fix(compiler): prefer localName over originalName by running an empty check on originalName Aug 16, 2024
@christian-bromann
Copy link
Member Author

@tanner-reits dang .. updated title.

@christian-bromann christian-bromann added this pull request to the merge queue Aug 16, 2024
Merged via the queue into main with commit 0f42656 Aug 16, 2024
88 checks passed
@christian-bromann christian-bromann deleted the cb/import-type-error branch August 16, 2024 16:22
@christian-bromann
Copy link
Member Author

This patch was published in Stencil v4.21.0!

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.

bug: invalid import paths in app.js introduced with v4.19.0
2 participants