From 37af011d6ac4fe6cf7803a6c215a18157da529e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Sun, 11 Jun 2023 22:42:19 +0100 Subject: [PATCH] fix: added workaround for sql.js during vitest --- vitest.config.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vitest.config.ts b/vitest.config.ts index 043a3cf..e7e0842 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -12,6 +12,10 @@ export default defineConfig({ replacement: 'src/$1', }, ], + // workaround: sql.js is not ESModule friendly, yet... + deps: { + inline: ['sql.js'], + }, api: { port: 5174, // vite port + 1 },