Skip to content

Commit

Permalink
fix(transformer): after using StatementInjector, some statements disa…
Browse files Browse the repository at this point in the history
…ppeared (#6778)
  • Loading branch information
Dunqing committed Oct 22, 2024
1 parent d2b8f50 commit b711ee1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/oxc_transformer/src/common/statement_injector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ impl<'a> StatementInjectorStore<'a> {
new_statements.push(stmt);
new_statements.extend(adjacent_stmts.into_iter().map(|s| s.stmt));
}
} else {
new_statements.push(stmt);
}
}

Expand Down

0 comments on commit b711ee1

Please sign in to comment.