title: typescript 4.4.4: tsconfig paths not resolving as expected
body: <p>my tsconfig.json</p>
  <pre><code>{
    &quot;compilerOptions&quot;: {
      &quot;target&quot;: &quot;ES2018&quot;,
      &quot;module&quot;: &quot;CommonJS&quot;,
      &quot;lib&quot;: [&quot;ESNext&quot;, &quot;ESNext.AsyncIterable&quot;],
      &quot;skipLibCheck&quot;: true,
      &quot;sourceMap&quot;: true,
      &quot;outDir&quot;: &quot;./dist&quot;,
      &quot;moduleResolution&quot;: &quot;node&quot;,
      &quot;removeComments&quot;: true,
      &quot;noImplicitAny&quot;: true,
      &quot;strictNullChecks&quot;: true,
      &quot;strictFunctionTypes&quot;: true,
      &quot;noImplicitThis&quot;: true,
      &quot;noUnusedLocals&quot;: true,
      &quot;noUnusedParameters&quot;: true,
      &quot;noImplicitReturns&quot;: true,
      &quot;noFallthroughCasesInSwitch&quot;: true,
      &quot;allowSyntheticDefaultImports&quot;: true,
      &quot;esModuleInterop&quot;: true,
      &quot;emitDecoratorMetadata&quot;: true,
      &quot;experimentalDecorators&quot;: true,
      &quot;resolveJsonModule&quot;: true,
      &quot;baseUrl&quot;: &quot;./&quot;,
      &quot;paths&quot;: {
        &quot;@/*&quot;: [&quot;src/*&quot;],
        &quot;@config&quot;: [&quot;src/config&quot;],
      }
    },
    &quot;exclude&quot;: [&quot;node_modules&quot;],
    &quot;include&quot;: [&quot;./src/**/*.ts&quot;]
  }
  
  </code></pre>
  <p>I am pretty sure there is nothing wrong in tsconfig paths because I even get path autocompletion from my IDE. however when my code is compiled (tsc --project tsconfig.json)</p>
  <pre><code>import { PRODUCTION } from '@config';
  
  // or
  
  import { PRODUCTION } from '@/config';
  </code></pre>
  <p>I get following javascript</p>
  <pre><code>&quot;use strict&quot;;
  Object.defineProperty(exports, &quot;__esModule&quot;, { value: true });
  const _config_1 = require(&quot;@config&quot;);
  console.log(_config_1.PRODUCTION);
  //# sourceMappingURL=index.js.map
  </code></pre>
  <p>but javascript doesn't understand what &quot;@&quot; is therefore I get &quot;module not found&quot; error. How can I solve this problem?</p>