@@ -95,7 +95,7 @@ until the root of the volume is reached.
9595```
9696
9797``` bash
98- # In same folder as above package.json
98+ # In same folder as preceding package.json
9999node my-app.js # Runs as ES module
100100```
101101
@@ -527,7 +527,7 @@ import { something } from 'a-package'; // Imports "something" from ./main.mjs.
527527
528528Self-referencing is available only if ` package.json ` has ` exports ` , and will
529529allow 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:
531531
532532``` js
533533// ./another-module.mjs
@@ -637,7 +637,7 @@ CommonJS entry point for `require`.
637637}
638638```
639639
640- The above example uses explicit extensions ` .mjs ` and ` .cjs ` .
640+ The preceding example uses explicit extensions ` .mjs ` and ` .cjs ` .
641641If your files use the ` .js ` extension, ` "type": "module" ` will cause such files
642642to be treated as ES modules, just as ` "type": "commonjs" ` would cause them
643643to be treated as CommonJS.
@@ -1221,7 +1221,7 @@ export async function getFormat(url, context, defaultGetFormat) {
12211221 if (Math.random() > 0.5) { // Some condition.
12221222 // For some or all URLs, do some custom logic for determining format.
12231223 // 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 .
12251225 return {
12261226 format: 'module',
12271227 };
0 commit comments