This repo demonstrates an issue where a route will receive imported CSS from other layouts.
- Create two routes
simple
andother
and configure them to use layoutsLayout.svelte
andOther.svelte
, respectively. - Create two CSS files,
simple.css
andother.css
. Inside the script tag of each layout, import their respective CSS file. - Bug: Start the dev server and navigate to one of your routes. You'll see that on both routes, both
simple.css
andother.css
are loaded.- Expected behaviour: On the simple route, only
simple.css
is loaded. On the other route, onlyother.css
is loaded.
- Expected behaviour: On the simple route, only