Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove enbling section as it doesn't have consensus
  • Loading branch information
aduh95 committed Jan 2, 2022
commit 7639c2fe2877f7681322f28557672fbe5e5bc0c8
11 changes: 0 additions & 11 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,6 @@ module.exports = class Square {

The module system is implemented in the `require('module')` module.

## Enabling

<!-- type=misc -->

Node.js treats JavaScript code as CommonJS modules by default.
Authors can tell Node.js to treat JavaScript code as CommonJS modules
via the `.cjs` file extension, the `package.json` [`"type"`][] field, or the
[`--input-type`][] flag. See [Determining module system][] for more details.

## Accessing the main module

<!-- type=misc -->
Expand Down Expand Up @@ -1056,8 +1047,6 @@ This section was moved to
[ECMAScript Modules]: esm.md
[GLOBAL_FOLDERS]: #loading-from-the-global-folders
[`"main"`]: packages.md#main
[`"type"`]: packages.md#type
[`--input-type`]: cli.md#--input-typetype
[`ERR_REQUIRE_ESM`]: errors.md#err_require_esm
[`Error`]: errors.md#class-error
[`__dirname`]: #__dirname
Expand Down