Skip to content

Commit 8767567

Browse files
committed
Fix path resolution of compiled bundles
1 parent 00b2b5e commit 8767567

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_extensions/sverto/create-imports.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ local preprocess_qmd_filter = {
7979
end
8080

8181
-- now change `import_svelte("X.svelte")` refs to `import("X.js")`
82+
-- TODO - neaten up relative paths instead of assuming we're going from
83+
-- /site_libs/quarto-ojs
8284
block.text = block_text:gsub(
8385
svelte_import_syntax,
84-
"import(\"%1.js\")")
86+
"import(\"./../../%1.js\");")
8587

8688
end
8789
return block

0 commit comments

Comments
 (0)