Skip to main content
要在 Bun 中将 .html 文件作为文本文件导入,请在 import 语句中使用 type: "text" 属性。
file.ts
启用热模块重载或监听模式时,只要 ./file.html 发生变化,Bun 就会重新加载。