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: ensure newline before inline sourcemap #182

Closed lucacasonato closed 10 months ago

lucacasonato commented 10 months ago

On main the code { 1; } transpiles to { 1; }//# sourceMappingURL=...

This PR fixes this to transpile to { 1; }\n//# sourceMappingURL=...