Skip to content

Commit

Permalink
fix: differentiate buffer in compile's tree (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatiusmb authored Dec 22, 2023
1 parent e4ff5bc commit d6a8a65
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

1 comment on commit d6a8a65

@vercel
Copy link

@vercel vercel bot commented on d6a8a65 Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.