Skip to content

Commit 8f41022

Browse files
dnalborczyktargos
authored andcommitted
doc: add node: url scheme
PR-URL: #40573 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Voltrex <[email protected]>
1 parent 35dbed2 commit 8f41022

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

doc/api/esm.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -891,11 +891,10 @@ purposes.
891891

892892
```js
893893
// coffeescript-loader.mjs
894-
import { readFile } from 'fs/promises';
895-
import { dirname, extname, resolve as resolvePath } from 'path';
896-
import { cwd } from 'process';
897-
import { fileURLToPath, pathToFileURL } from 'url';
898-
894+
import { readFile } from 'node:fs/promises';
895+
import { dirname, extname, resolve as resolvePath } from 'node:path';
896+
import { cwd } from 'node:process';
897+
import { fileURLToPath, pathToFileURL } from 'node:url';
899898
import CoffeeScript from 'coffeescript';
900899
901900
const baseURL = pathToFileURL(`${cwd()}/`).href;

0 commit comments

Comments
 (0)