TypeScript · Modules

module

Specify what module code is generated.

Syntax
"module": "none"

Example

Example
{
  "compilerOptions": {
    "module": "none"
  }
}

More in this group

allowArbitraryExtensions allowImportingTsExtensions allowUmdGlobalAccess baseUrl customConditions moduleSuffixes noResolve noUncheckedSideEffectImports

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course