Skip to content

Commit

Permalink
Fix import path resolution issue (#1423)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis authored Jan 23, 2025
1 parent 7d9afc9 commit 158d70d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tender-sloths-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'houdini-svelte': patch
---

Fix bug preventing vite6 from importing the generated root layout
5 changes: 4 additions & 1 deletion packages/houdini-svelte/src/plugin/fsPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,11 @@ export default (getFramework: () => Framework) =>
if (match) {
return path.join(config.projectRoot, filepath.substring(match[1].length))
}

// if there is no deep relative import, do the default thing
return
return filepath.startsWith('/src')
? { id: path.join(config.projectRoot, filepath) }
: null
}

// everything internal to houdini should assume posix paths
Expand Down

0 comments on commit 158d70d

Please sign in to comment.