Skip to content

Commit

Permalink
better behavior for fspatch
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Feb 3, 2023
1 parent 386796c commit 0420327
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/houdini-svelte/src/plugin/fsPatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ filesystemPromises.readFile = async (path, options): Promise<any> => {
try {
return await _readFile(path, options)
} catch {
return '<slot />'
return typeof options === 'string' || options?.encoding
? empty_layout
: Buffer.from(empty_layout)
}
}

Expand Down

0 comments on commit 0420327

Please sign in to comment.