oxc/napi
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
..
parser feat(napi): isolated-declaration (#3718) 2024-06-17 13:06:00 +00:00
transform feat(codegen)!: new code gen API (#3740) 2024-06-18 15:50:12 +00:00
.gitignore feat(napi): isolated-declaration (#3718) 2024-06-17 13:06:00 +00:00