Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Sep 26, 2023
1 parent 3ca8412 commit 1cb1578
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/api/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ Define which module system, `module` or `commonjs`, to use for the following:

In other words, `--experimental-type=module` flips all the places where Node.js
currently defaults to CommonJS to instead default to ECMAScript modules, with
the exception of packages inside `node_modules`, for backward compatibility reasons.
the exception of packages inside `node_modules`, for backward compatibility.

Under `--experimental-type=module` and `--experimental-wasm-modules`, files with
no extension will be treated as WebAssembly if they begin with the WebAssembly
Expand Down
3 changes: 2 additions & 1 deletion doc/api/packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ one module system or the other based on the value of the
as CommonJS when the `package.json` file lacks a `"type"` field, regardless
of `--experimental-type`, for backward compatibility.)

* Strings passed in as an argument to `--eval` or piped to `node` via `STDIN`, when `--input-type` is unspecified.
* Strings passed in as an argument to `--eval` or piped to `node` via `STDIN`,
when `--input-type` is unspecified.

This flag currently defaults to `"commonjs"`, but it may change in the future to
default to `"module"`. For this reason it is best to be explicit wherever
Expand Down

0 comments on commit 1cb1578

Please sign in to comment.