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(transformers): handle template literals in styles or styleUrl property (#2735) #2736

Conversation

skrtheboss
Copy link
Contributor

@skrtheboss skrtheboss commented Sep 12, 2024

Summary

Fixes #2735

Test plan

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Copy link
Collaborator

@ahnpnl ahnpnl left a comment

Choose a reason for hiding this comment

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

Indeed changed to StringLiteralLike would work, just like here https://github.com/angular/angular-cli/blob/78f76485fe315ffd0262c1a3732092731235828b/packages/ngtools/webpack/src/transformers/replace_resources.ts#L189

FYI we copy mainly the source from Angular :)

@ahnpnl ahnpnl merged commit 03cae4c into thymikee:main Sep 12, 2024
9 checks passed
@skrtheboss
Copy link
Contributor Author

Ohh, that would have been helpful! 😄
Nevertheless, I found the correct solution 🎉
Thank you!

@skrtheboss skrtheboss deleted the fix/handle-template-literals-in-styles-or-styleUrl-property branch September 12, 2024 09:34
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]: Tests fail if component with template literals for styles/styleUrl property are used
2 participants