From 7a6e8336773c706e0c75ddf87494021fcd92ca7e Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Fri, 22 Oct 2021 21:04:12 -0400 Subject: [PATCH] doc: add node: url scheme PR-URL: https://github.com/nodejs/node/pull/40573 Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Voltrex --- doc/api/esm.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index a69addbb072fb2..6d8022a3fbf9c5 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -886,11 +886,10 @@ purposes. ```js // coffeescript-loader.mjs -import { readFile } from 'fs/promises'; -import { dirname, extname, resolve as resolvePath } from 'path'; -import { cwd } from 'process'; -import { fileURLToPath, pathToFileURL } from 'url'; - +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'; import CoffeeScript from 'coffeescript'; const baseURL = pathToFileURL(`${cwd()}/`).href;