File tree Expand file tree Collapse file tree 3 files changed +16
-5
lines changed
demos/react-supabase-todolist Expand file tree Collapse file tree 3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @powersync/web ' : minor
3+ ---
4+
5+ Added support for OPFS virtual filesystem.
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export const db = new PowerSyncDatabase({
1717 dbFilename : 's.sqlite'
1818 } ,
1919 flags : {
20- enableMultiTabs : true
20+ enableMultiTabs : typeof SharedWorker !== 'undefined'
2121 }
2222 // database: new WASQLiteOpenFactory({
2323 // dbFilename: 'examplsw1se112.db'
Original file line number Diff line number Diff line change 1- import wasm from 'vite-plugin-wasm' ;
2- import topLevelAwait from 'vite-plugin-top-level-await' ;
31import { fileURLToPath , URL } from 'url' ;
2+ import topLevelAwait from 'vite-plugin-top-level-await' ;
3+ import wasm from 'vite-plugin-wasm' ;
44
5- import { defineConfig } from 'vite' ;
65import react from '@vitejs/plugin-react' ;
6+ import { defineConfig } from 'vite' ;
77import { VitePWA } from 'vite-plugin-pwa' ;
88
99// https://vitejs.dev/config/
@@ -25,9 +25,15 @@ export default defineConfig({
2525 // Don't optimize these packages as they contain web workers and WASM files.
2626 // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
2727 exclude : [ '@journeyapps/wa-sqlite' , '@powersync/web' ] ,
28- include : [ ] ,
28+ include : [ ]
2929 // include: ['@powersync/web > js-logger'], // <-- Include `js-logger` when it isn't installed and imported.
3030 } ,
31+ server : {
32+ headers : {
33+ 'Cross-Origin-Opener-Policy' : 'same-origin' ,
34+ 'Cross-Origin-Embedder-Policy' : 'require-corp'
35+ }
36+ } ,
3137 plugins : [
3238 wasm ( ) ,
3339 topLevelAwait ( ) ,
You can’t perform that action at this time.
0 commit comments