Skip to content

Commit ef2110f

Browse files
committed
format and add comment
1 parent 6f365f1 commit ef2110f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,10 @@ async function kit({ svelte_config }) {
308308
'@sveltejs/kit'
309309
],
310310
resolve: {
311-
conditions: ['module', 'node', 'development|production'],
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']
312315
}
313316
}
314317
};

0 commit comments

Comments
 (0)