summaryrefslogtreecommitdiff
path: root/cli/emit.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-05-17 16:59:35 +0200
committerGitHub <noreply@github.com>2022-05-17 16:59:35 +0200
commitd76acfdc17e27b53fc53e6cd3051ff0acaefef42 (patch)
tree73a2f9984887f5403682de6100b7059b475ea25d /cli/emit.rs
parentb2ba0c54afe806770a9a556b8e622b3c8c0bb5d1 (diff)
fix: base64 encoding of source maps with emojis (#14607)
This commit fixes source maps for files that contain emojis. This is done by updating "deno_ast" to "0.14.1" for the case of "--no-check" flag (ie using SWC emit) and by overriding TSC's default base64 encoder (which turned out to be buggy) for the type checking case.
Diffstat (limited to 'cli/emit.rs')
-rw-r--r--cli/emit.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/emit.rs b/cli/emit.rs
index b6eef0b88..5896d0dff 100644
--- a/cli/emit.rs
+++ b/cli/emit.rs
@@ -709,6 +709,7 @@ pub fn bundle(
let emit_options: deno_ast::EmitOptions = options.ts_config.into();
let source_map_config = deno_ast::SourceMapConfig {
inline_sources: emit_options.inline_sources,
+ maybe_base: None,
};
let cm = Rc::new(swc::common::SourceMap::new(