Commits
Click on a commit to change the comparison rangefix(ast): correct JSON serialization of `TSModuleBlock` (#3858)
Fix #3848.
#3830 added a `directives` field to `TSModuleBlock`. ESTree AST treats directives in module blocks as `StringLiteral`s. Add a custom `Serialize` impl to combine any directives back into `body` in JS AST.
NB: `#[serde(skip)]` attr on `directives` field is for benefit of `Tsify` derive macro, so TS defs match the actual JSON AST.9 months ago
by overlookmotel