add test for js.Build external source map comment

This commit is contained in:
Brian Leishman 2024-09-21 16:16:02 -04:00
parent 50d9bdff39
commit a5b287caaa

View file

@ -202,6 +202,7 @@ TS2: {{ template "print" $ts2 }}
}).Build()
b.AssertFileContent("public/js/myts.js", `//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJz`)
b.AssertFileContent("public/js/myts2.js", `//# sourceMappingURL=myts2.js.map`)
b.AssertFileContent("public/js/myts2.js.map", `"version": 3,`)
b.AssertFileContent("public/index.html", `
console.log("included");