oxc
oxc copied to clipboard
⚓ A collection of JavaScript tools written in Rust.
This question came up previously in #3326, and has reared its head again in #5158. `++x` currently gets flagged as `Write` only. This doesn't make sense to me as it...
Tests are still not passed. A lot need to do yet.
## The problem Currently we have `TransformCtx` which contains shared state between all transforms. It's stored in various transforms' `self` as a reference `&'ctx TransformCtx`. So there only needs to...
We still lack a lot of APIs to make it compatible with esbuild / rollup.
Close: #4753 Almost done, but this PR includes many changes related to the `ModuleImports` helper. I need to split it
I previously extracted the common parts of `prefer_to_be_truthy` and `prefer_to_be_falsy` into `utils`. However, we should place rule-specific logic that isn't general-purpose directly within the respective rules.
`Codegen::print_char`, a public API, can be used to construct invalid UTF-8 in safe code. When `Codegen::into_source_text` gets called, `String::from_utf8_unchecked`'s invariants will not be upheld, producing undefined behavior. I do not...
closes #6071 I will gradually improve the remaining code until I understand the usage of the new method.