Skip to content

Commit 79a8ebf

Browse files
committed
add node to resolve conditions
1 parent 3fe76e4 commit 79a8ebf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/e2e-tests/kit-node/svelte.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ const config = {
1212
target: '#svelte',
1313

1414
vite: {
15+
resolve: {
16+
// No idea why Vite doesn't include "node" by default: https://vitejs.dev/config/#resolve-conditions
17+
conditions: ['import', 'module', 'browser', 'default', 'production', 'development', 'node']
18+
},
1519
server: {
1620
watch: {
1721
// During tests we edit the files too fast and sometimes chokidar

0 commit comments

Comments
 (0)