Skip to content

Commit 7a6e833

Browse files
dnalborczykBethGriggs
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 d72fb7d commit 7a6e833

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
@@ -886,11 +886,10 @@ purposes.
886886

887887
```js
888888
// coffeescript-loader.mjs
889-
import { readFile } from 'fs/promises';
890-
import { dirname, extname, resolve as resolvePath } from 'path';
891-
import { cwd } from 'process';
892-
import { fileURLToPath, pathToFileURL } from 'url';
893-
889+
import { readFile } from 'node:fs/promises';
890+
import { dirname, extname, resolve as resolvePath } from 'node:path';
891+
import { cwd } from 'node:process';
892+
import { fileURLToPath, pathToFileURL } from 'node:url';
894893
import CoffeeScript from 'coffeescript';
895894
896895
const baseURL = pathToFileURL(`${cwd()}/`).href;

0 commit comments

Comments
 (0)