v1.3.2
·
61 commits
to main
since this release
What Changed
Fixed bug where inlined js closing script tag in a string would break html.
index.html
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World!</title>
</head>
<body>
<script src="./main.tsx"></script>
</body>main.ts
console.log("</script>")build.ts
await Bun.build({
entrypoints: ['./index.html'],
outdir: generationDirectory,
plugins: [html({ inline: true })],
})Output
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello World!</title>
</head>
<body>
<script>
console.log("\x3C/script>")
</script>
</body>