oxc/crates
Dunqing 59666e0127
fix(transformer): do not rename accessible identifier references (#3623)
close: #3620

In `Babel`, the expected output is:

```ts
var x = 10;
var Foo = function(Foo) {
       Foo[Foo['a'] = 10] = 'a';
       Foo[Foo['b'] = 10] = 'b';
       Foo[Foo['c'] = 30] = 'c';
       return Foo;
}(Foo || {});
```

IMO, `Foo.b + x` is enough, because `x` is not a const variable. The
output same as with `typescript`
2024-06-13 15:26:38 +08:00
..
oxc Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_allocator feat(linter): add eslint/no-useless-constructor (#3594) 2024-06-13 13:12:18 +08:00
oxc_ast chore: change all usages of static_assertions to dev-dependencies (#3654) 2024-06-13 13:18:53 +08:00
oxc_ast_macros Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_codegen Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_diagnostics Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_index Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_js_regex chore: crates should only publish src and examples directory 2024-06-08 16:35:16 +08:00
oxc_language_server feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_linter chore: change all usages of static_assertions to dev-dependencies (#3654) 2024-06-13 13:18:53 +08:00
oxc_macros chore: crates should only publish src and examples directory 2024-06-08 16:35:16 +08:00
oxc_minifier Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_module_lexer Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_parser chore: change all usages of static_assertions to dev-dependencies (#3654) 2024-06-13 13:18:53 +08:00
oxc_prettier feat!(ast): make Trivias clonable by adding Arc (#3638) 2024-06-12 13:16:10 +08:00
oxc_semantic fix(semantic): Add Eq to CtxFlags (#3651) 2024-06-13 13:04:42 +08:00
oxc_sourcemap Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_span Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_syntax Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_transformer fix(transformer): do not rename accessible identifier references (#3623) 2024-06-13 15:26:38 +08:00
oxc_traverse Release crates v0.14.0 (#3643) 2024-06-12 17:52:41 +08:00
oxc_wasm fix!(codegen): remove the unecessary 4th argument from Codegen::new (#3640) 2024-06-12 07:58:54 +00:00