@@ -178,7 +178,7 @@ import './foo.mjs?query=1'; // loads ./foo.mjs with query of "?query=1"
178
178
import ' ./foo.mjs?query=2' ; // loads ./foo.mjs with query of "?query=2"
179
179
```
180
180
181
- The volume root may be referenced via ` / ` , ` // ` or ` file:/// ` . Given the
181
+ The volume root may be referenced via ` / ` , ` // ` , or ` file:/// ` . Given the
182
182
differences between [ URL] [ ] and path resolution (such as percent encoding
183
183
details), it is recommended to use [ url.pathToFileURL] [ ] when importing a path.
184
184
@@ -470,7 +470,7 @@ semantics implemented.
470
470
471
471
### Differences between ES modules and CommonJS
472
472
473
- #### No ` require` , ` exports ` or ` module .exports `
473
+ #### No ` require` , ` exports ` , or ` module .exports `
474
474
475
475
In most cases, the ES module ` import ` can be used to load CommonJS modules.
476
476
@@ -1085,7 +1085,7 @@ import CoffeeScript from 'coffeescript';
1085
1085
1086
1086
const baseURL = pathToFileURL(`${cwd()}/`).href;
1087
1087
1088
- // CoffeeScript files end in .coffee, .litcoffee or .coffee.md.
1088
+ // CoffeeScript files end in .coffee, .litcoffee, or .coffee.md.
1089
1089
const extensionsRegex = /\. coffee$|\. litcoffee$|\. coffee\. md$/;
1090
1090
1091
1091
export async function resolve(specifier, context, nextResolve) {
@@ -1251,7 +1251,7 @@ The resolver can throw the following errors:
1251
1251
> 2. If _specifier_ is a valid URL, then
1252
1252
> 1. Set _resolved_ to the result of parsing and reserializing
1253
1253
> _specifier_ as a URL.
1254
- > 3. Otherwise, if _specifier_ starts with _"/"_, _"./"_ or _"../"_, then
1254
+ > 3. Otherwise, if _specifier_ starts with _"/"_, _"./"_, or _"../"_, then
1255
1255
> 1. Set _resolved_ to the URL resolution of _specifier_ relative to
1256
1256
> _parentURL_.
1257
1257
> 4. Otherwise, if _specifier_ starts with _"#"_, then
@@ -1432,14 +1432,14 @@ _internal_, _conditions_)
1432
1432
> 2. Return **PACKAGE\_ RESOLVE**(_target_ + _subpath_,
1433
1433
> _packageURL_ + _"/"_).
1434
1434
> 2. Otherwise, throw an _Invalid Package Target_ error.
1435
- > 3. If _target_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_ or
1435
+ > 3. If _target_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_, or
1436
1436
> _"node\_ modules"_ segments after the first segment, case insensitive and
1437
1437
> including percent encoded variants, throw an _Invalid Package Target_
1438
1438
> error.
1439
1439
> 4. Let _resolvedTarget_ be the URL resolution of the concatenation of
1440
1440
> _packageURL_ and _target_.
1441
1441
> 5. Assert: _resolvedTarget_ is contained in _packageURL_.
1442
- > 6. If _subpath_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_ or
1442
+ > 6. If _subpath_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_, or
1443
1443
> _"node\_ modules"_ segments, case insensitive and including percent
1444
1444
> encoded variants, throw an _Invalid Module Specifier_ error.
1445
1445
> 7. If _pattern_ is **true**, then
0 commit comments