We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 817fd03 commit cfb5157Copy full SHA for cfb5157
from.js
@@ -1,10 +1,11 @@
1
-import {statSync, createReadStream} from 'fs';
2
-import {stat} from 'fs/promises';
+import {statSync, createReadStream, promises as fs} from 'fs';
3
import {basename} from 'path';
4
import File from './file.js';
5
import Blob from './index.js';
6
import {MessageChannel} from 'worker_threads';
7
+const {stat} = fs
8
+
9
const DOMException = globalThis.DOMException || (() => {
10
const port = new MessageChannel().port1
11
const ab = new ArrayBuffer(0)
0 commit comments