oxc/tasks/transform_conformance/src
Dunqing c59d8b3c9b feat(transformer): support all /regex/ to new RegExp transforms (#5387)
related: #4754

The implementation port from [esbuild](332727499e/internal/js_parser/js_parser.go (L12820-L12840)). And cover all babel's regexp plugins

---

## The following description was generated by `Graphite` 😋

### TL;DR

Added support for transforming various RegExp features to ensure compatibility with older JavaScript environments.

### What changed?

- Implemented a new `RegExp` transformer to handle unsupported RegExp literal features
- Added options to control different RegExp transformations (e.g., sticky flag, unicode flag, dot-all flag, etc.)
- Updated the transformer to convert unsupported RegExp literals into `new RegExp()` constructor calls
- Added test cases for different RegExp transformations
- Integrated the new RegExp transformer into the existing transformation pipeline

### How to test?

1. Run the existing test suite to ensure no regressions
2. Execute the new RegExp-specific tests in the `tasks/transform_conformance/tests/esbuild-tests/test/fixtures/regexp/` directory
3. Try transforming code with various RegExp features using different target environments to verify correct transformations
2024-09-05 11:04:45 +00:00
..
constants.rs feat(transformer): support all /regex/ to new RegExp transforms (#5387) 2024-09-05 11:04:45 +00:00
driver.rs feat(semantic): transform checker check child scope IDs (#5410) 2024-09-03 00:57:13 +00:00
lib.rs feat(transform_conformance): show transform conformance errors (#4976) 2024-08-19 09:01:34 +00:00
main.rs refactor(transformer/typescript): reimplementation of Enum conversion based on Babel (#3102) 2024-04-29 16:26:22 +08:00
test_case.rs refactor(ci): transform conformance snapshot include when output mismatch (#5135) 2024-08-24 04:52:14 +00:00