| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b533a51 commit 5d41b8a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -170,6 +170,13 @@ relative, and based on the real path of the files making the calls to | |||
| 170 | 170 | ||
| 171 | 171 | ## Loading ECMAScript modules using `require()` | |
| 172 | 172 | ||
| 173 | + <!-- YAML | ||
| 174 | + added: v22.0.0 | ||
| 175 | + --> | ||
| 176 | + | ||
| 177 | + > Stability: 1.1 - Active Development. Enable this API with the | ||
| 178 | + > [`--experimental-require-module`][] CLI flag. | ||
| 179 | + | ||
| 173 | 180 | The `.mjs` extension is reserved for [ECMAScript Modules][]. | |
| 174 | 181 | Currently, if the flag `--experimental-require-module` is not used, loading | |
| 175 | 182 | an ECMAScript module using `require()` will throw a [`ERR_REQUIRE_ESM`][] | |
@@ -1189,6 +1196,7 @@ This section was moved to | |||
| 1189 | 1196 | [GLOBAL_FOLDERS]: #loading-from-the-global-folders | |
| 1190 | 1197 | [`"main"`]: packages.md#main | |
| 1191 | 1198 | [`"type"`]: packages.md#type | |
| 1199 | + [`--experimental-require-module`]: cli.md#--experimental-require-module | ||
| 1192 | 1200 | [`ERR_REQUIRE_ASYNC_MODULE`]: errors.md#err_require_async_module | |
| 1193 | 1201 | [`ERR_REQUIRE_ESM`]: errors.md#err_require_esm | |
| 1194 | 1202 | [`ERR_UNSUPPORTED_DIR_IMPORT`]: errors.md#err_unsupported_dir_import | |
| Back | FazBrowse Home | New Git URL |
0 commit comments