mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 12:21:58 +00:00
### What I did in this PR 1. Replace `self.clone_identifier_reference` with `ctx.clone_identifier.reference` 2. Remove the usage of `ast.copy` 3. Handle below example correctly ### Example ```js // Input var foo = object.foo ?? "default"; // Output var _object$foo; var foo = (_object$foo = object.foo) !== null && _object$foo !== void 0 ? _object$foo : "default"; ``` |
||
|---|---|---|
| .. | ||
| ast_tools | ||
| benchmark | ||
| common | ||
| coverage | ||
| javascript_globals | ||
| lint_rules | ||
| minsize | ||
| prettier_conformance | ||
| rulegen | ||
| transform_conformance | ||
| website | ||