Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions packages/kit/src/exports/vite/dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ export async function dev(vite, vite_config, svelte_config) {
for (const dep of deps) {
const url = new URL(dep.url, 'http://localhost/');
const query = url.searchParams;
const pathname = decodeURI(url.pathname);

if (
isCSSRequest(dep.file) ||
Expand All @@ -187,9 +188,7 @@ export async function dev(vite, vite_config, svelte_config) {
query.set('inline', '');

try {
const mod = await loud_ssr_load_module(
`${url.pathname}${url.search}${url.hash}`
);
const mod = await loud_ssr_load_module(`${pathname}${url.search}${url.hash}`);
Comment thread
whataboutpereira marked this conversation as resolved.
Outdated
styles[dep.url] = mod.default;
} catch {
// this can happen with dynamically imported modules, I think
Expand Down