From 1b74d3f7755726c25a524ad49cfeddb6fb41fcc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Tue, 22 Jun 2021 10:40:43 +0200 Subject: [PATCH] doc: fix dead links in packages.md PR-URL: https://github.com/nodejs/node/pull/39113 Reviewed-By: Colin Ihrig Reviewed-By: Antoine du Hamel Reviewed-By: Darshan Sen Reviewed-By: Daijiro Wachi Reviewed-By: Luigi Pinca --- doc/api/packages.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/packages.md b/doc/api/packages.md index c5dbfa60ecaf50..8a984574056a1a 100644 --- a/doc/api/packages.md +++ b/doc/api/packages.md @@ -565,7 +565,7 @@ Any number of custom conditions can be set with repeat flags. The `"import"`, `"require"`, `"node"` and `"default"` conditions are defined and implemented in Node.js core, -[as specified above](#esm_conditional_exports). +[as specified above](#packages_conditional_exports). Other condition strings are unknown to Node.js and thus ignored by default. Runtimes or tools other than Node.js can use them at their discretion. @@ -760,7 +760,7 @@ The preceding example uses explicit extensions `.mjs` and `.cjs`. If your files use the `.js` extension, `"type": "module"` will cause such files to be treated as ES modules, just as `"type": "commonjs"` would cause them to be treated as CommonJS. -See [Enabling](#esm_enabling). +See [Enabling](esm.md#esm_enabling). ```cjs // ./node_modules/pkg/index.cjs