oxc/crates/oxc_isolated_declarations
Boshen 5c38a0fd69 feat(codegen)!: new code gen API (#3740)
This PR introduces two type alias to avoid the confusing const generic `pub struct Codegen<'a, const MINIFY: bool>`

* CodeGenerator - Code generator without whitespace removal.
* WhitespaceRemover - Code generator with whitespace removal.

Usage is changed to a builder pattern:

```rust
CodeGenerator::new()
  .enable_comment(...)
  .enable_sourcemap(...)
  .build(&program);
```
2024-06-18 15:50:12 +00:00
..
examples feat(codegen)!: new code gen API (#3740) 2024-06-18 15:50:12 +00:00
src feat(isolated-declarations): create unique name for _default (#3730) 2024-06-18 03:40:45 +00:00
Cargo.toml refactor(isolated-declarations): decouple codegen (#3715) 2024-06-17 11:45:29 +00:00