Can I change the SWC parser’s behaviour to allow hyphens in identifiers? #5523
-
Describe the featureI believe the possible benefits of allowing hyphens everywhere in JS such as identifiers and fields of objects would easily surpass the cons of giving up calculating subtraction without spaces ( Babel plugin or link to the feature descriptionNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Converted as this is not a feature. |
Beta Was this translation helpful? Give feedback.
-
SWC will not support non-ECMA syntaxes out of the box. It is up to your preference if you take some of the building blocks for the SWC from rust pacakges to invent new semantics. |
Beta Was this translation helpful? Give feedback.
SWC will not support non-ECMA syntaxes out of the box. It is up to your preference if you take some of the building blocks for the SWC from rust pacakges to invent new semantics.