dominikg / svite

svelte integration for vite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

improve routify-mdsvex example with layout alias code

dominikg opened this issue · comments

see https://github.com/dominikg/site/blob/staging-svite/vite.config.js

basically vite fails to resolve the absolute import paths mdsvex is generating for layouts. i recommend you put all your layouts in a single directory eg /src/layouts, and generate an alias for each layout like in the code i linked.

this has been solved by automatically resolving absolute paths that end up being inside of rootDir in svite-0.6.1-beta.0

svite-0.6.1 has been released