Skip to content

Commit

Permalink
Add missing node import prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
atjn committed Jul 20, 2024
1 parent 02c4ed7 commit e5425d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ getFolderSize.strict = async (itemPath, options) =>
await core(itemPath, options, { strict: true });

async function core(rootItemPath, options = {}, returnType = {}) {
const fs = options.fs || (await import("fs/promises"));
const fs = options.fs || (await import("node:fs/promises"));

const fileSizes = new Map();
const errors = [];
Expand Down

0 comments on commit e5425d2

Please sign in to comment.