diff --git a/workspace/marqua/src/fs/index.js b/workspace/marqua/src/fs/index.js index ea39a5a..6dfcc46 100644 --- a/workspace/marqua/src/fs/index.js +++ b/workspace/marqua/src/fs/index.js @@ -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 });