oxc/crates
underfin 78b427bc50
feat(transform): support es2015 new target (#1967)
Here implementing the es2015 new target transform, see detail at
https://babel.dev/docs/babel-plugin-transform-template-new-target.

Here has three kinds need to be distinguished.

- `NewTargetKind::Method`, it from `AstKind::ObjectMethod` or
`AstKind::MethodDefinitionKind::Get/Set/Method`. It will be transformed
to `void 0`.
- `NewTargetKind::Constructor`, is from `
AstKind::MethodDefinitionKind::Constructor`. It will be transformed to
`this.constructor`.
- `NewTargetKind::Function`, is from ` AstKind::Function`, here the
function is not the above function. It will be transformed to `this
instanceof _target ? this.constructor : void 0`, here `_target` comes
from the function name or is created by scope uid ident.
2024-01-10 23:59:56 +08:00
..
oxc refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00
oxc_allocator feat(allocator): add From API (#1908) 2024-01-06 12:45:27 +08:00
oxc_ast refactor(parser): remove TokenValue::RegExp from Token (#1926) 2024-01-08 13:48:52 +08:00
oxc_cli feat(linter): support overriding oxlint rules by eslint config (#1966) 2024-01-10 15:44:53 +08:00
oxc_codegen refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00
oxc_diagnostics chore(deps): bump the dependencies group with 11 updates (#1865) 2024-01-01 08:06:33 +00:00
oxc_index feat(playground): visualize symbol (#1886) 2024-01-04 15:36:31 +08:00
oxc_js_regex
oxc_language_server refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00
oxc_linter feat(linter): eslint-plugin-jsx-a11y autocomplete-valid (#1901) 2024-01-10 10:17:33 +00:00
oxc_linter_plugin chore(deps): bump the dependencies group with 5 updates (#1808) 2023-12-25 15:17:47 +08:00
oxc_macros
oxc_minifier chore: upgrade rustc toolchain to stable 1.75.0 (#1853) 2023-12-29 12:20:51 +08:00
oxc_parser refactor(parser): reduce Token size from 32 to 16 bytes (#1962) 2024-01-09 15:17:02 +08:00
oxc_prettier feat(linter): no-irregular-whitespace rule (#1835) 2023-12-31 12:05:38 +08:00
oxc_query
oxc_semantic feat(transform): support es2015 new target (#1967) 2024-01-10 23:59:56 +08:00
oxc_span
oxc_syntax feat(semantic): allow reserved keyword defined in ts module block (#1907) 2024-01-06 12:56:27 +08:00
oxc_transformer feat(transform): support es2015 new target (#1967) 2024-01-10 23:59:56 +08:00
oxc_type_synthesis
oxc_wasm refactor(formatter,linter,codegen): remove oxc_formatter (#1968) 2024-01-10 06:41:20 +00:00