inlineSourceMap

tcmts.loader.sourcemap.inlineSourceMap · #ni7f6byj · term · runs on the server

uses Buffer

The comment that attaches a map to a module.

export function inlineSourceMap(map: string): string {
  return `//# sourceMappingURL=data:application/json;charset=utf-8;base64,${Buffer.from(map).toString("base64")}`;
}

used by