Skip to content

Commit

Permalink
Fix broken fs.readFile by last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ije committed Feb 26, 2024
1 parent 6672c52 commit 8eb5495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (globalThis.Bun) {
const p = import(u); // <- use variable to skip deno-lsp analyzing
fs.readFile = async (url) => {
const { readFile } = await p;
readFile(url.pathname);
return readFile(url.pathname);
};
} else {
// browser or deno
Expand Down

0 comments on commit 8eb5495

Please sign in to comment.