oxc/tasks/transform_conformance/oxc.snap.md
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

118 B

commit: 12619ffe

Passed: 4/4

All Passed:

  • babel-plugin-transform-typescript
  • babel-plugin-transform-react-jsx