Skip to content

Commit a3a3fc1

Browse files
committed
this
1 parent e516290 commit a3a3fc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vitest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default defineConfig({
1111
find: /^svelte\/?/,
1212
customResolver: (id, importer) => {
1313
// For some reason this turns up as "undefined" instead of "svelte/"
14-
const exported = pkg.exports[id.replace('undefined', './')];
14+
const exported = pkg.exports[id === 'undefined' ? '.' : id.replace('undefined', './')];
1515
if (!exported) return;
1616

1717
// When running the server version of the Svelte files,

0 commit comments

Comments
 (0)