Skip to content

Commit 0c5ca07

Browse files
authored
Update packages/kit/src/exports/vite/index.js
1 parent ef2110f commit 0c5ca07

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/kit/src/exports/vite/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,10 +308,10 @@ async function kit({ svelte_config }) {
308308
'@sveltejs/kit'
309309
],
310310
resolve: {
311-
// This is default value in Vite 6 but not Vite 5. We need it so that
312-
// importing $app/state correctly resolves to the default conditional export
313-
// instead of the browser condition.
314-
conditions: ['module', 'node', 'development|production']
311+
// We need this so that importing $app/state correctly
312+
// resolves to the default conditional export instead of
313+
// the browser condition on the server.
314+
conditions: ['module', 'node']
315315
}
316316
}
317317
};

0 commit comments

Comments
 (0)