From d76acfdc17e27b53fc53e6cd3051ff0acaefef42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 17 May 2022 16:59:35 +0200 Subject: 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. --- cli/tsc/compiler.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/tsc/compiler.d.ts') diff --git a/cli/tsc/compiler.d.ts b/cli/tsc/compiler.d.ts index e84484884..7d935434b 100644 --- a/cli/tsc/compiler.d.ts +++ b/cli/tsc/compiler.d.ts @@ -8,7 +8,7 @@ declare global { namespace ts { var libs: string[]; var libMap: Map; - + var base64encode: (host: ts.CompilerHost, input: string) => string; interface SourceFile { version?: string; } -- cgit v1.2.3