Skip to content

Commit d13ab16

Browse files
committed
Optimized dep include entries for vitest tests.
1 parent 4a65bbe commit d13ab16

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

packages/drizzle-driver/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const config: UserConfigExport = {
1010
optimizeDeps: {
1111
// Don't optimise these packages as they contain web workers and WASM files.
1212
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
13-
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
13+
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
14+
include: ['async-mutex', 'comlink', 'bson']
1415
},
1516
plugins: [wasm(), topLevelAwait()],
1617
test: {

packages/kysely-driver/vitest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ const config: UserConfigExport = {
1010
optimizeDeps: {
1111
// Don't optimise these packages as they contain web workers and WASM files.
1212
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
13-
exclude: ['@journeyapps/wa-sqlite', '@powersync/web']
13+
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
14+
include: ['async-mutex', 'comlink', 'bson']
1415
},
1516
plugins: [wasm(), topLevelAwait()],
1617
test: {

packages/web/vitest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const config: UserConfigExport = {
3131
// Don't optimise these packages as they contain web workers and WASM files.
3232
// https://github.com/vitejs/vite/issues/11672#issuecomment-1415820673
3333
exclude: ['@journeyapps/wa-sqlite', '@powersync/web'],
34-
include: ['bson']
34+
include: ['bson', 'comlink']
3535
},
3636
plugins: [wasm(), topLevelAwait()],
3737
test: {

0 commit comments

Comments
 (0)