@@ -95,7 +95,7 @@ until the root of the volume is reached.
95
95
```
96
96
97
97
``` bash
98
- # In same folder as above package.json
98
+ # In same folder as preceding package.json
99
99
node my-app.js # Runs as ES module
100
100
```
101
101
@@ -527,7 +527,7 @@ import { something } from 'a-package'; // Imports "something" from ./main.mjs.
527
527
528
528
Self-referencing is available only if ` package.json ` has ` exports ` , and will
529
529
allow importing only what that ` exports ` (in the ` package.json ` ) allows.
530
- So the code below, given the package above , will generate a runtime error:
530
+ So the code below, given the previous package , will generate a runtime error:
531
531
532
532
``` js
533
533
// ./another-module.mjs
@@ -637,7 +637,7 @@ CommonJS entry point for `require`.
637
637
}
638
638
```
639
639
640
- The above example uses explicit extensions ` .mjs ` and ` .cjs ` .
640
+ The preceding example uses explicit extensions ` .mjs ` and ` .cjs ` .
641
641
If your files use the ` .js ` extension, ` "type": "module" ` will cause such files
642
642
to be treated as ES modules, just as ` "type": "commonjs" ` would cause them
643
643
to be treated as CommonJS.
@@ -1221,7 +1221,7 @@ export async function getFormat(url, context, defaultGetFormat) {
1221
1221
if (Math.random() > 0.5) { // Some condition.
1222
1222
// For some or all URLs, do some custom logic for determining format.
1223
1223
// Always return an object of the form {format: <string>}, where the
1224
- // format is one of the strings in the table above .
1224
+ // format is one of the strings in the preceding table .
1225
1225
return {
1226
1226
format: 'module',
1227
1227
};
0 commit comments