@@ -161,7 +161,7 @@ When a module is requested via `require()`:
161161 * Files with any other extension, or without extensions, are treated as JavaScript
162162 text files.
163163 * ` require() ` can only be used to [ load ECMAScript modules from CommonJS modules] [ ] if
164- the [ ECMAScript module] [ ES Module ] and its dependencies are synchronous
164+ the [ ECMAScript module] [ ES Module ] _ and its dependencies _ are synchronous
165165 (i.e. they do not contain top-level ` await ` ).
166166
167167When a module is requested via ` import ` statements or ` import() ` expressions:
@@ -183,12 +183,13 @@ When a module is requested via `import` statements or `import()` expressions:
183183 files.
184184 * ` .wasm ` files are treated as [ WebAssembly modules] [ ] .
185185 * Any other file extensions will result in a [ ` ERR_UNKNOWN_FILE_EXTENSION ` ] [ ] error.
186+ Additional file extensions can be facilitated via [ customization hooks] [ ] .
186187 * ` import ` /` import() ` can be used to load JavaScript [ CommonJS modules] [ commonjs ] .
187188 Such modules are passed through the ` cjs-module-lexer ` to try to identify named
188189 exports, which are available if they can be determined through static analysis.
189190
190191Regardless of how a module is requested, the resolution and loading process can be customized
191- using [ loader hooks] [ ] .
192+ using [ customization hooks] [ ] .
192193
193194### ` package.json ` and file extensions
194195
@@ -1176,7 +1177,7 @@ This field defines [subpath imports][] for the current package.
11761177[ folders as modules ] : modules.md#folders-as-modules
11771178[ import maps ] : https://github.com/WICG/import-maps
11781179[ load ECMAScript modules from CommonJS modules ] : modules.md#loading-ecmascript-modules-using-require
1179- [ loader hooks] : module.md#customization-hooks
1180+ [ customization hooks] : module.md#customization-hooks
11801181[ packages folder mapping ] : https://github.com/WICG/import-maps#packages-via-trailing-slashes
11811182[ self-reference ] : #self-referencing-a-package-using-its-name
11821183[ subpath exports ] : #subpath-exports
0 commit comments