Files
SnowLuma/.pnpm-store/v11/files/b9/0687c695db7b4043d893be3b33347897c8e9c3649309d4116901ca216e5cef51dca1819353c00251b689edbb8a70892fd1e66ebef6cded21ae50098cbfb694
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

28 lines
812 B
Plaintext

import { toSSG as toSSG$1 } from "../../helper/ssg/ssg.js";
import "../../helper/ssg/index.js";
//#region src/adapter/bun/ssg.ts
const { write } = Bun;
/**
* @experimental
* `bunFileSystemModule` is an experimental feature.
* The API might be changed.
* @deprecated `hono/bun` will be removed in v5. Install `@hono/bun` and import from there instead.
*/
const bunFileSystemModule = {
writeFile: async (path, data) => {
await write(path, data);
},
mkdir: async () => {}
};
/**
* @experimental
* `toSSG` is an experimental feature.
* The API might be changed.
* @deprecated `hono/bun` will be removed in v5. Install `@hono/bun` and import from there instead.
*/
const toSSG = async (app, options) => {
return toSSG$1(app, bunFileSystemModule, options);
};
//#endregion
export { bunFileSystemModule, toSSG };