oxc/tasks/transform_conformance/tests
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
..
babel-plugin-transform-arrow-functions/test/fixtures test(transformer): add tests for nested JSX this member expressions in arrow function transform (#5413) 2024-09-03 15:06:06 +00:00
babel-plugin-transform-nullish-coalescing-operator/test/fixtures fix(traverse): invalid variable name generated by generate_uid_based_on_node (#5407) 2024-09-03 12:13:30 +00:00
babel-plugin-transform-optional-catch-binding/test/fixtures
babel-plugin-transform-react-jsx/test/fixtures feat(transformer): support react fast refresh (#4587) 2024-08-15 16:41:30 +00:00
babel-plugin-transform-typescript/test/fixtures fix(transformer): class property with typescript value should not be removed (#5298) 2024-08-28 13:53:41 +00:00
babel-preset-typescript/test/fixtures/removeImportExtensions feat(transformer/typescript): support rewrite_import_extensions option (#5399) 2024-09-03 01:57:42 +00:00
esbuild-tests/test/fixtures/regexp feat(transformer): support all /regex/ to new RegExp transforms (#5387) 2024-09-05 11:04:45 +00:00