Skip to content

Commit

Permalink
fix: differentiate buffer in compile's tree
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Dec 21, 2023
1 parent b03b1d0 commit ecaccc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions workspace/marqua/src/fs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function compile(entry, hydrate) {
if (fs.lstatSync(path).isDirectory()) {
return { type: 'directory', name, path };
}
const buffer = fs.readFileSync(path);
return { type: 'file', name, path, buffer };
});
return hydrate({ breadcrumb, buffer, parse, siblings: tree });
Expand Down

0 comments on commit ecaccc0

Please sign in to comment.