denoland / deno_ast

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

Transform for stripping comments from JS #222

Closed dsherret closed 2 months ago

dsherret commented 4 months ago
          LGTM. Can we get a transform that would drop comments from JS sources but otherwise leave them intact? I think we could save some Kbs if we did that for internal code during snapshotting.

_Originally posted by @bartlomieju in https://github.com/denoland/deno_ast/pull/221#pullrequestreview-1932452781_

dsherret commented 2 months ago

This was implemented.