File tree Expand file tree Collapse file tree 3 files changed +349
-272
lines changed
Expand file tree Collapse file tree 3 files changed +349
-272
lines changed Original file line number Diff line number Diff line change 3232 "@powersync/common" : " workspace:^1.18.1"
3333 },
3434 "devDependencies" : {
35- "@powersync/web" : " workspace:*" ,
36- "@journeyapps/wa-sqlite" : " ^1.0.0" ,
3735 "@types/node" : " ^20.17.6" ,
3836 "@vitest/browser" : " ^2.1.4" ,
3937 "ts-loader" : " ^9.5.1" ,
4038 "ts-node" : " ^10.9.2" ,
4139 "typescript" : " ^5.6.3" ,
4240 "vite" : " ^5.4.10" ,
4341 "vite-plugin-top-level-await" : " ^1.4.4" ,
44- "vite-plugin-wasm" : " ^3.3.0" ,
4542 "vitest" : " ^2.1.4" ,
4643 "webdriverio" : " ^9.2.8"
4744 }
Original file line number Diff line number Diff line change 1- import wasm from 'vite-plugin-wasm' ;
21import topLevelAwait from 'vite-plugin-top-level-await' ;
32import { defineConfig , UserConfigExport } from 'vitest/config' ;
43
54const config : UserConfigExport = {
6- worker : {
7- format : 'es' ,
8- plugins : ( ) => [ wasm ( ) , topLevelAwait ( ) ]
9- } ,
10- optimizeDeps : {
11- // Don't optimise these packages as they contain web workers and WASM files.
12- // https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
13- exclude : [ '@journeyapps/wa-sqlite' , '@powersync/web' ]
14- } ,
15- plugins : [ wasm ( ) , topLevelAwait ( ) ] ,
5+ plugins : [ topLevelAwait ( ) ] ,
166 test : {
177 isolate : false ,
188 globals : true ,
You can’t perform that action at this time.
0 commit comments