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 e516290 commit a3a3fc1Copy full SHA for a3a3fc1
vitest.config.js
@@ -11,7 +11,7 @@ export default defineConfig({
11
find: /^svelte\/?/,
12
customResolver: (id, importer) => {
13
// For some reason this turns up as "undefined" instead of "svelte/"
14
- const exported = pkg.exports[id.replace('undefined', './')];
+ const exported = pkg.exports[id === 'undefined' ? '.' : id.replace('undefined', './')];
15
if (!exported) return;
16
17
// When running the server version of the Svelte files,
0 commit comments