Skip to content

fix(ssr): avoid reserved keyword collision#5108

Merged
nolanlawson merged 2 commits intomasterfrom
nolan/fix-private-fields
Jan 8, 2025
Merged

fix(ssr): avoid reserved keyword collision#5108
nolanlawson merged 2 commits intomasterfrom
nolan/fix-private-fields

Conversation

@nolanlawson
Copy link
Contributor

@nolanlawson nolanlawson commented Jan 8, 2025

Details

If a component author happens to use the variable names privateFields/publicFields in their component, then they will conflict with the SSR compiler's usage of those same variables, and result in an error at compile time:

Identifier "privateFields" has already been declared

Note this was introduced by #5092

This PR fixes that.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

@nolanlawson nolanlawson merged commit 5b0b148 into master Jan 8, 2025
8 checks passed
@nolanlawson nolanlawson deleted the nolan/fix-private-fields branch January 8, 2025 18:51
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.

2 participants