fix(client-standalone): get client scripts to run

This commit is contained in:
Elian Doran
2026-01-07 14:42:02 +02:00
parent e76c33c37a
commit cb5b491633
4 changed files with 9 additions and 5 deletions

View File

@@ -0,0 +1,2 @@
// Re-export desktop from client
export * from "../../client/src/desktop";

View File

@@ -117,9 +117,9 @@
}
async function loadScripts() {
const assetPath = glob.assetPath;
await import(`./${assetPath}/runtime.js`);
await import(`./${assetPath}/desktop.js`);
// Import from local re-export files that reference client source
await import("./runtime.ts");
await import("./desktop.ts");
}
bootstrap();

View File

@@ -0,0 +1,2 @@
// Re-export runtime from client
export * from "../../client/src/runtime";

View File

@@ -135,11 +135,11 @@ export default defineConfig(() => ({
},
build: {
target: "esnext",
outDir: join(__dirname, 'dist'), // Keep output in parent directory
outDir: join(__dirname, 'dist'),
emptyOutDir: true,
rollupOptions: {
input: {
main: join(__dirname, 'src', 'index.html') // Input relative to config file
main: join(__dirname, 'src', 'index.html')
}
}
},