Boshen

Results 565 comments of Boshen

> While we're at it, we could also simplify SourceType by making it just a bitflags byte, or a 1-byte enum. This is a huge breaking change because we export...

@Dunqing Please don't use this API from now on 😁 . Use `move_xxx` APIs instead.

> We should still add a json option for users who want to skip JSON.parse(). e.g. if they want to save the AST to disk as JSON. Will defer when...

This is harder than I thought, I need to make a self reference struct 🤔 ? ```rust #[derive(Debug)] struct ReplaceGlobalDefinesConfigImpl { identifier_defines: Vec, dot_defines: Vec, } ``` is changed to...

The config is a singleton initiated before anything else, there is no allocator prior to constructing it 😅

Previously: * https://github.com/oxc-project/backlog/issues/149

Double checked with tsc, your conclusion seems correct.

Rolldown needs to implement `inject` plugin https://esbuild.github.io/api/#inject, which requires an identifiable import statement to be inserted into the AST.

> I have suggested to them that they could use either: > > 1. Index of the statement in `program.body`. > 2. Memory address of the `ImportDeclaration`. > > ```rust...