本页还没有译文
本页 3 段还没译成Español,下面显示的是英文原文。Import a HTML file as text
还没翻译译自英文(bun.com)本页 3 段都还没译
To import a .html file in Bun as a text file, use the type: "text" attribute in the import statement.
import html from "./file.html" with { type: "text" };
console.log(html); // <!DOCTYPE html><html><head>...With hot module reloading or watch mode, Bun reloads whenever ./file.html changes.
AI 翻译查看英文原文