|
|
|
@ -12,6 +12,7 @@ export default defineConfig({
|
|
|
|
customResolver: (id, importer) => {
|
|
|
|
customResolver: (id, importer) => {
|
|
|
|
// For some reason this turns up as "undefined" instead of "svelte"
|
|
|
|
// For some reason this turns up as "undefined" instead of "svelte"
|
|
|
|
const exported = pkg.exports[id.replace('undefined', '.')];
|
|
|
|
const exported = pkg.exports[id.replace('undefined', '.')];
|
|
|
|
|
|
|
|
console.log('importing', id, 'from', importer, !!exported);
|
|
|
|
if (!exported) return;
|
|
|
|
if (!exported) return;
|
|
|
|
|
|
|
|
|
|
|
|
// When running the server version of the Svelte files,
|
|
|
|
// When running the server version of the Svelte files,
|
|
|
|
|