We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f365f1 commit ef2110fCopy full SHA for ef2110f
packages/kit/src/exports/vite/index.js
@@ -308,7 +308,10 @@ async function kit({ svelte_config }) {
308
'@sveltejs/kit'
309
],
310
resolve: {
311
- conditions: ['module', 'node', 'development|production'],
+ // 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']
315
}
316
317
};
0 commit comments