title: import on Typescript module=ES2020
body: <p>I decided to use module and target ES2020, because it's time to catch up. I also like the idea of not using webpacking to compile the code to a single JS file.
  Anyway, I have the following code</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>//// main.ts:
  import { Included } from "./Included";
  
  export class Main {
      constructor() {
          console.log(`hi from main`);
          new Included().say();
      }
  }
  new Main();
  
  /// included.ts:
  export class Included {
      constructor() {
          console.log(`I was included!`);
      }
      say(){
          alert(`Wayasalikilikiyawangagat!`);
      }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;title&gt;Using latest ts =&gt; js2018&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  hi
  &lt;script type="module" src="./bin/main.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>It works fine in TypeScript, but when it compiles to ES2020 - it won't recognize</p>
  <pre><code>import { Included } from &quot;./Included&quot;;
  </code></pre>
  <p>It wants  only</p>
  <pre><code>import { Included } from &quot;./Included.js&quot;;
  </code></pre>
  <p>But my Typescript does not add &quot;.js&quot; automatically. Here is my tsconfig:</p>
  <pre><code>{
      &quot;compilerOptions&quot;: {
          &quot;module&quot;: &quot;ES2020&quot;,
          &quot;target&quot;: &quot;ES2020&quot;,
          &quot;outDir&quot;: &quot;./bin&quot;
      },
      &quot;include&quot;: [
          &quot;src/**/*&quot;
      ],
      &quot;exclude&quot;: [
          &quot;node_modules&quot;,
          &quot;**/*.spec.ts&quot;
      ]
  }
  </code></pre>
  <p>Is it possible to make TS add &quot;.js&quot; on every import when it compiles files to JS? Thank you.</p>