TypeScript · Modules

moduleSuffixes

List of file name suffixes to search when resolving a module.

Syntax
"moduleSuffixes": []

Example

Example
{
  "compilerOptions": {
    "moduleSuffixes": []
  }
}

More in this group

allowArbitraryExtensions allowImportingTsExtensions allowUmdGlobalAccess baseUrl customConditions module 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