Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(transformer/class-properties): do not create temp var for templa…
…te literal computed key (#7919) Do not create temp var for computed key which is `TemplateLiteral` with no expressions. Evaluating such a template literal cannot have side effects. ```js class C { [`foo`] = 1; } ``` But this *can* have side effects: ```js class C { [`foo${bar}`] = 1; } ```
- Loading branch information