salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.64k stars 393 forks source link

[SSR v2] Consolidate mechanisms that validate identifier/field names #4826

Open divmain opened 1 week ago

divmain commented 1 week ago

The new SSR compiler includes an isValidIdentifier helper function, which determines whether a given string is a valid JavaScript identifier. However, there exists something similar in babel-plugin-component. These should probably be consolidated onto the babel-plugin-component implementation for backwards compatibility reasons.

git2gus[bot] commented 1 week ago

This issue has been linked to a new work item: W-17206167

nolanlawson commented 1 week ago

Details here

cardoso commented 4 days ago

Should this go in @lwc/shared?