import { minifyJs } from "./utils.js"; export class HtmlExporter { constructor(spriteProvider) { this.spriteProvider = spriteProvider; } async export(projectName, code) { const js = code .split("\n") .map((line) => " ".repeat(12) + line).join("\n"); let lib = await (await fetch("./src/gamelib.js")).text(); lib = minifyJs(lib); const sprites = this.spriteProvider.getAll(); const html = `