@@ -170,7 +170,7 @@ import './foo.mjs?query=1'; // loads ./foo.mjs with query of "?query=1"
170
170
import ' ./foo.mjs?query=2' ; // loads ./foo.mjs with query of "?query=2"
171
171
```
172
172
173
- The volume root may be referenced via ` / ` , ` // ` or ` file:/// ` . Given the
173
+ The volume root may be referenced via ` / ` , ` // ` , or ` file:/// ` . Given the
174
174
differences between [ URL] [ ] and path resolution (such as percent encoding
175
175
details), it is recommended to use [ url.pathToFileURL] [ ] when importing a path.
176
176
@@ -456,7 +456,7 @@ semantics implemented.
456
456
457
457
### Differences between ES modules and CommonJS
458
458
459
- #### No ` require` , ` exports ` or ` module .exports `
459
+ #### No ` require` , ` exports ` , or ` module .exports `
460
460
461
461
In most cases, the ES module ` import ` can be used to load CommonJS modules.
462
462
@@ -1021,7 +1021,7 @@ import CoffeeScript from 'coffeescript';
1021
1021
1022
1022
const baseURL = pathToFileURL(`${cwd()}/`).href;
1023
1023
1024
- // CoffeeScript files end in .coffee, .litcoffee or .coffee.md.
1024
+ // CoffeeScript files end in .coffee, .litcoffee, or .coffee.md.
1025
1025
const extensionsRegex = /\. coffee$|\. litcoffee$|\. coffee\. md$/;
1026
1026
1027
1027
export async function resolve(specifier, context, defaultResolve) {
@@ -1184,7 +1184,7 @@ The resolver can throw the following errors:
1184
1184
> 2. If _specifier_ is a valid URL, then
1185
1185
> 1. Set _resolved_ to the result of parsing and reserializing
1186
1186
> _specifier_ as a URL.
1187
- > 3. Otherwise, if _specifier_ starts with _"/"_, _"./"_ or _"../"_, then
1187
+ > 3. Otherwise, if _specifier_ starts with _"/"_, _"./"_, or _"../"_, then
1188
1188
> 1. Set _resolved_ to the URL resolution of _specifier_ relative to
1189
1189
> _parentURL_.
1190
1190
> 4. Otherwise, if _specifier_ starts with _"#"_, then
@@ -1386,14 +1386,14 @@ _internal_, _conditions_)
1386
1386
> 2. Return **PACKAGE\_ RESOLVE**(_target_ + _subpath_,
1387
1387
> _packageURL_ + _"/"_).
1388
1388
> 2. Otherwise, throw an _Invalid Package Target_ error.
1389
- > 3. If _target_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_ or
1389
+ > 3. If _target_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_, or
1390
1390
> _"node\_ modules"_ segments after the first segment, case insensitive and
1391
1391
> including percent encoded variants, throw an _Invalid Package Target_
1392
1392
> error.
1393
1393
> 4. Let _resolvedTarget_ be the URL resolution of the concatenation of
1394
1394
> _packageURL_ and _target_.
1395
1395
> 5. Assert: _resolvedTarget_ is contained in _packageURL_.
1396
- > 6. If _subpath_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_ or
1396
+ > 6. If _subpath_ split on _"/"_ or _"\\ "_ contains any _"."_, _".."_, or
1397
1397
> _"node\_ modules"_ segments, case insensitive and including percent
1398
1398
> encoded variants, throw an _Invalid Module Specifier_ error.
1399
1399
> 7. If _pattern_ is **true**, then
0 commit comments