prefix node module import with node:

This commit is contained in:
Viet Huynh
2023-11-21 03:00:35 +07:00
parent 041970972a
commit df2a2d7141
3 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -1,8 +1,8 @@
import { once } from "events";
import { createReadStream, createWriteStream } from "fs";
import { basename } from "path";
import { createInterface } from "readline";
import { pipeline } from "stream/promises";
import { once } from "node:events";
import { createReadStream, createWriteStream } from "node:fs";
import { basename } from "node:path";
import { createInterface } from "node:readline";
import { pipeline } from "node:stream/promises";
if (!globalThis.fetch) {
globalThis.fetch = (await import("node-fetch")).default;