deno/tests/specs/bundle/html/a.ts
Nathan Whitaker 4e4bbf2fcc
feat(bundle): support html entrypoint (#29856)
For instance

`deno bundle --outdir dist index.html`

It will find scripts referenced in the html, bundle them, and then
update the paths in index.html for the bundled assets.

Right now it doesn't handle other assets (from `link` elements), but it
could
2025-09-09 12:18:10 -07:00

3 lines
93 B
TypeScript

export const a = 1;
document.body.insertAdjacentHTML("beforeend", "A");
console.log("A", a);