Skip to main content
To import a .html file in Bun as a text file, use the type: "text" attribute in the import statement.
file.ts
With hot module reloading or watch mode, Bun reloads whenever ./file.html changes.