From 8f410229ac9251303fa03d62bd3ce007284ce176 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 e20d3f99416948..8d6fbd6fd0fb8d 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -891,11 +891,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;