fix: added workaround for sql.js during vitest

This commit is contained in:
鲁树人 2023-06-11 22:42:19 +01:00
parent 473f310aca
commit 37af011d6a

View File

@ -12,6 +12,10 @@ export default defineConfig({
replacement: 'src/$1', replacement: 'src/$1',
}, },
], ],
// workaround: sql.js is not ESModule friendly, yet...
deps: {
inline: ['sql.js'],
},
api: { api: {
port: 5174, // vite port + 1 port: 5174, // vite port + 1
}, },