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.
This commit is contained in:
Bartek Iwańczuk 2022-05-17 16:59:35 +02:00 committed by GitHub
parent b2ba0c54af
commit d76acfdc17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 56 additions and 6 deletions

View file

@ -8,7 +8,7 @@ declare global {
namespace ts {
var libs: string[];
var libMap: Map<string, string>;
var base64encode: (host: ts.CompilerHost, input: string) => string;
interface SourceFile {
version?: string;
}