Skip to content

Commit 0428214

Browse files
authored
Update README.md
1 parent e833095 commit 0428214

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Any error that is not a `TSError` is from node.js (e.g. `SyntaxError`), and cann
226226

227227
There are two options when using `import` statements: compile them to CommonJS or use node's native ESM support.
228228

229-
To compile to CommonJS, you must set `"module": "commonjs"` in your `tsconfig.json`.
229+
To compile to CommonJS, you must set `"module": "CommonJS"` in your `tsconfig.json` or compiler options.
230230

231231
Node's native ESM support is currently experimental and so is `ts-node`'s ESM loader hook. For usage, limitations, and to provide feedback, see [#1007](https://github.com/TypeStrong/ts-node/issues/1007).
232232

0 commit comments

Comments
 (0)