Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8f41022

Browse filesBrowse files
dnalborczyktargos
authored andcommitted
doc: add node: url scheme
PR-URL: #40573 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Voltrex <mohammadkeyvanzade94@gmail.com>
1 parent 35dbed2 commit 8f41022
Copy full SHA for 8f41022

File tree

Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/esm.md‎

Copy file name to clipboardExpand all lines: doc/api/esm.md
+4-5Lines changed: 4 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.