Skip to content

Glossary: TypeScript Basics

module (compiler option)

Also written: nodenext, type=module

`"module": "nodenext"` makes `tsc` follow Node's rules for `import` and `export`, together with `"type": "module"` in `package.json`.

Where the book teaches it

Related terms

compiler optionexport / import