diff options
Diffstat (limited to 'svelte.config.js')
| -rw-r--r-- | svelte.config.js | 20 | 
1 files changed, 13 insertions, 7 deletions
| diff --git a/svelte.config.js b/svelte.config.js index d4f1eff..d57b4d7 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -6,17 +6,23 @@ import importMap from './import_map.json' with { type: 'json' };  const config = {    preprocess: vitePreprocess(),    kit: { +    paths: { +      base: '/~mem', +    },      adapter: adapter({        fallback: '404.html',      }),      alias: Object.fromEntries( -      Object.entries(importMap.imports).filter(([k]) => -        k !== '$lib' && k !== '$lib/' -      ).map(([k, v]) => -        v.startsWith('npm:') -          ? 'npm:' + k === v ? [] : [k, 'node_modules/' + v.substring(4)] -          : [k, v] -      ).filter((v) => v.length !== 0), +      Object.entries(importMap.imports) +        .filter(([k]) => k !== '$lib' && k !== '$lib/') +        .map(([k, v]) => +          v.startsWith('npm:') +            ? 'npm:' + k === v +              ? [] +              : [k, 'node_modules/' + v.substring(4)] +            : [k, v], +        ) +        .filter((v) => v.length !== 0),      ),    },  }; |