@@ -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
@@ -542,7 +542,7 @@ import { something } from 'a-package'; // Imports "something" from ./main.mjs.
542
542
543
543
Self-referencing is available only if ` package.json ` has ` exports ` , and will
544
544
allow importing only what that ` exports ` (in the ` package.json ` ) allows.
545
- So the code below, given the package above , will generate a runtime error:
545
+ So the code below, given the previous package , will generate a runtime error:
546
546
547
547
``` js
548
548
// ./another-module.mjs
@@ -689,7 +689,7 @@ CommonJS entry point for `require`.
689
689
}
690
690
```
691
691
692
- The above example uses explicit extensions ` .mjs ` and ` .cjs ` .
692
+ The preceding example uses explicit extensions ` .mjs ` and ` .cjs ` .
693
693
If your files use the ` .js ` extension, ` "type": "module" ` will cause such files
694
694
to be treated as ES modules, just as ` "type": "commonjs" ` would cause them
695
695
to be treated as CommonJS.
@@ -1309,7 +1309,7 @@ export async function getFormat(url, context, defaultGetFormat) {
1309
1309
if (Math.random() > 0.5) { // Some condition.
1310
1310
// For some or all URLs, do some custom logic for determining format.
1311
1311
// Always return an object of the form {format: <string>}, where the
1312
- // format is one of the strings in the table above .
1312
+ // format is one of the strings in the preceding table .
1313
1313
return {
1314
1314
format: 'module',
1315
1315
};
0 commit comments