-
-
Notifications
You must be signed in to change notification settings - Fork 475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
☂️ transformer: ES2024 - ES2016 #4754
Comments
This is not a good first issue yet. |
Can we add CJS to this list too? I need this for oxc-jest. |
CJS is in the milestone https://github.com/oxc-project/oxc/milestone/6 |
The list is not that bad actually, we end up with a few groups:
|
) related: #4754 The implementation port from [esbuild](https://github.com/evanw/esbuild/blob/332727499e62315cff4ecaff9fa8b86336555e46/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
This comment was marked as outdated.
This comment was marked as outdated.
We had
😢 |
Need to implement babel plugins equivalent of
2024 features
2023 features
2022 features
ArbitraryModuleNamespaceNamescan parse correctly, can emit a warning if required evanw/esbuild@d354bbb2021 features
2020 features
TypeofExoticObjectIsObjectminifier feature Minifytypeof x !== 'undefined'
totypeof x < 'u'
evanw/esbuild@81215bc
2019 features
optional-catch-binding
plugin #48852018 features
object-spread
plugin #3133 covered spread, rest not done yet2017 features
2016 features
Regex Features
See https://esbuild.github.io/content-types/#javascript #5387
The text was updated successfully, but these errors were encountered: