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 61b53b2 commit 81e4e3fCopy full SHA for 81e4e3f
packages/kit/src/exports/vite/index.js
@@ -299,9 +299,10 @@ async function kit({ svelte_config }) {
299
// because they for example use esbuild.build with `platform: 'browser'`
300
'esm-env',
301
// This forces `$app/*` modules to be bundled, since they depend on
302
- // virtual modules like `__sveltekit/paths`
303
- // TODO use RegExp.escape once we drop Node <22
304
- new RegExp(runtime_directory.replace(/[/\-\\^$*+?.()|[\]{}]/g, '\\$&'))
+ // virtual modules like `__sveltekit/paths` (this isn't a valid bare
+ // import, but it works with vite-node's externalization logic, which
+ // uses basic concatenation
305
+ '@sveltejs/kit/src/runtime'
306
]
307
}
308
};
0 commit comments