Skip to content

Commit

Permalink
doc: fix dead links in packages.md
Browse files Browse the repository at this point in the history
PR-URL: #39113
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
Reviewed-By: Daijiro Wachi <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
  • Loading branch information
targos committed Sep 4, 2021
1 parent 2d50217 commit 1b74d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1b74d3f

Please sign in to comment.