aynish
d46d67830a
- Implements CRDT syncing using cr-slqlite. - Initializes a simple vite application from the cr-sqlite repos that uses Svelte - implements a websocket go server backend for communicating syncs between applications Needs lots of refactoring, everything is hardcoded Co-authored-by: Anish Lakhwara <anish+git@lakhwara.com> Reviewed-on: #1
18 lines
387 B
JavaScript
18 lines
387 B
JavaScript
import { defineConfig } from 'vite'
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [svelte()],
|
|
optimizeDeps: {
|
|
exclude: ['@vlcn.io/crsqlite-wasm'],
|
|
},
|
|
server: {
|
|
headers: {
|
|
'Cross-Origin-Opener-Policy': 'same-origin',
|
|
'Cross-Origin-Embedder-Policy': 'require-corp',
|
|
},
|
|
},
|
|
});
|
|
|