| 123456789101112131415 |
- import { build } from "vite";
- import { fileURLToPath } from "node:url";
- const configFile = fileURLToPath(new URL("../../apps/dev/vite.config.ts", import.meta.url));
- const root = fileURLToPath(new URL("../../apps/dev", import.meta.url));
- const out = "/tmp/opencode/vite-out-test2";
- await build({
- configFile,
- root,
- base: "./",
- define: { __NENGINE_BUNDLE_DEFAULT__: JSON.stringify("../bundle.json") },
- build: { outDir: out, emptyOutDir: false },
- logLevel: "warn",
- });
- console.log("done:", out);
|