use channels for comms (#9)

this  refactors the app setup and messaging modules
This commit is contained in:
Akash Shakdwipeea
2025-08-20 21:58:09 +05:30
committed by GitHub
parent ba2d1c064b
commit 3b81926ae1
22 changed files with 981 additions and 900 deletions
+18
View File
@@ -10,12 +10,19 @@ export default defineConfig({
},
// Relative to 'root'.
outDir: "../dist",
copyPublicDir: true,
},
// For getting out of index.html from dist/static directory.
root: "static",
publicDir: ".",
worker: {
format: "es",
},
resolve: {
alias: {
'pkg': 'pkg'
}
},
plugins: [
// Makes us be able to use top level await for wasm.
// Otherwise, we can restrict build.target to 'es2022', which allows top level await.
@@ -23,8 +30,19 @@ export default defineConfig({
],
server: {
port: 8080,
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
},
fs: {
strict: false,
},
},
preview: {
port: 8080,
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
},
},
});