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 ef2110f commit 0c5ca07Copy full SHA for 0c5ca07
packages/kit/src/exports/vite/index.js
@@ -308,10 +308,10 @@ async function kit({ svelte_config }) {
308
'@sveltejs/kit'
309
],
310
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']
+ // We need this so that importing $app/state correctly
+ // resolves to the default conditional export instead of
+ // the browser condition on the server.
+ conditions: ['module', 'node']
315
}
316
317
};
0 commit comments