TypeScript · Modules

noResolve

Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project.

Syntax
"noResolve": true

Example

Example
{
  "compilerOptions": {
    "noResolve": true
  }
}

More in this group

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