denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
146 stars 45 forks source link

fix: jsx templates added before imports #175

Closed marvinhagemeister closed 10 months ago

marvinhagemeister commented 10 months ago

Noticed a case where we were still adding JSX templates before an import statement. Our heuristic wasn't sufficient and didn't take empty statements or export declarations into account.