GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — doc: update `require(ESM)` history and stability status · nodejs/node@70504f8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • doc/api
    • modules.md
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎doc/api/modules.md‎

Copy file name to clipboardExpand all lines: doc/api/modules.md
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ relative, and based on the real path of the files making the calls to
170170

171171
## Loading ECMAScript modules using `require()`
172172

173+
<!-- YAML
174+
added: v20.17.0
175+
-->
176+
177+
> Stability: 1.1 - Active Development. Enable this API with the
178+
> [`--experimental-require-module`][] CLI flag.
179+
173180
The `.mjs` extension is reserved for [ECMAScript Modules][].
174181
Currently, if the flag `--experimental-require-module` is not used, loading
175182
an ECMAScript module using `require()` will throw a [`ERR_REQUIRE_ESM`][]
@@ -1153,6 +1160,7 @@ This section was moved to
11531160
[GLOBAL_FOLDERS]: #loading-from-the-global-folders
11541161
[`"main"`]: packages.md#main
11551162
[`"type"`]: packages.md#type
1163+
[`--experimental-require-module`]: cli.md#--experimental-require-module
11561164
[`ERR_REQUIRE_ASYNC_MODULE`]: errors.md#err_require_async_module
11571165
[`ERR_REQUIRE_ESM`]: errors.md#err_require_esm
11581166
[`ERR_UNSUPPORTED_DIR_IMPORT`]: errors.md#err_unsupported_dir_import

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.