We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d72fb7d commit 7a6e833Copy full SHA for 7a6e833
doc/api/esm.md
@@ -886,11 +886,10 @@ purposes.
886
887
```js
888
// 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
-
+import { readFile } from 'node:fs/promises';
+import { dirname, extname, resolve as resolvePath } from 'node:path';
+import { cwd } from 'node:process';
+import { fileURLToPath, pathToFileURL } from 'node:url';
894
import CoffeeScript from 'coffeescript';
895
896
const baseURL = pathToFileURL(`${cwd()}/`).href;
0 commit comments