denoland / deno_ast

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

fix: allow specifying a base for source maps #87

Closed kitsonk closed 2 years ago

kitsonk commented 2 years ago

This fixes the situation where the source map source name is the full name of the file, potentially leaking information in the source map which is undesirable. This allows specifying a base (as well as specifies the base when doing a transpile) which will make the source file listed as relative of the source.