Skip to content

fix(compiler): prefer localName over originalName by running an empty check on originalName#5943

Merged
christian-bromann merged 2 commits intomainfrom
cb/import-type-error
Aug 16, 2024
Merged

fix(compiler): prefer localName over originalName by running an empty check on originalName#5943
christian-bromann merged 2 commits intomainfrom
cb/import-type-error

Conversation

@christian-bromann
Copy link
Copy Markdown
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

@christian-bromann christian-bromann requested a review from a team as a code owner August 14, 2024 01:52
Copy link
Copy Markdown
Contributor

@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
Copy Markdown
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
@christian-bromann christian-bromann deleted the cb/import-type-error branch August 16, 2024 16:22
@christian-bromann
Copy link
Copy Markdown
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