Skip to content

Commit e516290

Browse files
committed
try this
1 parent fff400e commit e516290

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

vitest.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ export default defineConfig({
1010
{
1111
find: /^svelte\/?/,
1212
customResolver: (id, importer) => {
13-
// For some reason this turns up as "undefined" instead of "svelte"
14-
const exported = pkg.exports[id.replace('undefined', '.')];
15-
console.log('importing', id, 'from', importer, !!exported);
13+
// For some reason this turns up as "undefined" instead of "svelte/"
14+
const exported = pkg.exports[id.replace('undefined', './')];
1615
if (!exported) return;
1716

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

0 commit comments

Comments
 (0)