@@ -174,7 +174,7 @@ import './foo.mjs?query=1'; // loads ./foo.mjs with query of "?query=1"
174
174
import ' ./foo.mjs?query=2' ; // loads ./foo.mjs with query of "?query=2"
175
175
```
176
176
177
- The volume root may be referenced via ` / ` , ` // ` or ` file:/// ` . Given the
177
+ The volume root may be referenced via ` / ` , ` // ` , or ` file:/// ` . Given the
178
178
differences between [ URL] [ ] and path resolution (such as percent encoding
179
179
details), it is recommended to use [ url.pathToFileURL] [ ] when importing a path.
180
180
@@ -466,7 +466,7 @@ semantics implemented.
466
466
467
467
### Differences between ES modules and CommonJS
468
468
469
- #### No ` require` , ` exports ` or ` module .exports `
469
+ #### No ` require` , ` exports ` , or ` module .exports `
470
470
471
471
In most cases, the ES module ` import ` can be used to load CommonJS modules.
472
472
@@ -1033,7 +1033,7 @@ import CoffeeScript from 'coffeescript';
1033
1033
1034
1034
const baseURL = pathToFileURL(`${cwd()}/`).href;
1035
1035
1036
- // CoffeeScript files end in .coffee, .litcoffee or .coffee.md.
1036
+ // CoffeeScript files end in .coffee, .litcoffee, or .coffee.md.
1037
1037
const extensionsRegex = /\. coffee$|\. litcoffee$|\. coffee\. md$/;
1038
1038
1039
1039
export async function resolve(specifier, context, defaultResolve) {
@@ -1196,7 +1196,7 @@ The resolver can throw the following errors:
1196
1196
> 2. If _specifier_ is a valid URL, then
1197
1197
> 1. Set _resolved_ to the result of parsing and reserializing
1198
1198
> _specifier_ as a URL.
1199
- > 3. Otherwise, if _specifier_ starts with _"/"_, _"./"_ or _"../"_, then
1199
+ > 3. Otherwise, if _specifier_ starts with _"/"_, _"./"_, or _"../"_, then
1200
1200
> 1. Set _resolved_ to the URL resolution of _specifier_ relative to
1201
1201
> _parentURL_.
1202
1202
> 4. Otherwise, if _specifier_ starts with _"#"_, then
@@ -1377,14 +1377,14 @@ _internal_, _conditions_)
1377
1377
> 2. Return **PACKAGE\_ RESOLVE**(_target_ + _subpath_,
1378
1378
> _packageURL_ + _"/"_).
1379
1379
> 2. Otherwise, throw an _Invalid Package Target_ error.
1380
- > 3. If _target_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_ or
1380
+ > 3. If _target_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_, or
1381
1381
> _"node\_ modules"_ segments after the first segment, case insensitive and
1382
1382
> including percent encoded variants, throw an _Invalid Package Target_
1383
1383
> error.
1384
1384
> 4. Let _resolvedTarget_ be the URL resolution of the concatenation of
1385
1385
> _packageURL_ and _target_.
1386
1386
> 5. Assert: _resolvedTarget_ is contained in _packageURL_.
1387
- > 6. If _subpath_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_ or
1387
+ > 6. If _subpath_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_, or
1388
1388
> _"node\_ modules"_ segments, case insensitive and including percent
1389
1389
> encoded variants, throw an _Invalid Module Specifier_ error.
1390
1390
> 7. If _pattern_ is **true**, then
0 commit comments