title: Typescript - Front - I want static imports merged, but dynamic imports not merged
body: <p>I want to merge some files (those with static import), but some don't have to be merged (those with dynamic import). </p>
  
  <p>How can I tell that to typescript ?</p>
  
  <p>The demo is done with 4 files, one index with the main() function, and 3 classes A, B and C.</p>
  
  <p>Current typescript config :</p>
  
  <pre><code>{
    "compilerOptions": {
      "allowJs": true,
      "target": "es2017",
      "module": "esnext",
      "outDir": "lib",
      "sourceMap": false,
      "strict": true,
      "noImplicitAny": false,
      "removeComments": true,
      "lib": [
        "esnext"
      ],
    },
    "compileOnSave": true,
    "include": [
      "src/**/*.ts",
      "src/**/*.js"
    ],
    "exclude": [
      "node_modules",
      "old"
    ]
  }
  </code></pre>
  
  <p>src/index.ts</p>
  
  <pre><code>'use strict';
  //@ts-check
  
  import { C } from './c/c'; // I want this one to be merged in index
  
  export const main = async () =&gt; {
    const c = new C();
    c.log();
  }
  
  main();
  </code></pre>
  
  <p>src/c.ts</p>
  
  <pre><code>'use strict';
  //@ts-check
  
  import { B } from '../b/b'; // I want this one to be merged in c, so in index
  
  export class C {
  
    async log() {
      const A = await import('/' + 'a.js');
      const a = new A();
      a.log();
      const b = new B();
      b.log();
    }
  }
  </code></pre>
  
  <p>src/b.ts</p>
  
  <pre><code>'use strict';
  //@ts-check
  
  export class B {
  
    async log() {
      console.log('b');
    }
  }
  </code></pre>
  
  <p>src/a.ts</p>
  
  <pre><code>'use strict';
  //@ts-check
  
  export class A {
  
    log() {
      console.log('a');
    }
  }
  </code></pre>
  
  <p>Currently I get :</p>
  
  <pre><code>- lib/a/a.js
  - lib/b/b.js
  - lib/c/c.js
  - lib/index.js
  </code></pre>
  
  <p>But I would like :</p>
  
  <pre><code>- lib/a.js // Apart from index, because it is dynamically imported
  - lib/index.js
  </code></pre>
  
  <p>Any idea ?</p>
  
  <p>Is there any decorator to tell typescript to merge c and b into index, then put a aside index ?</p>
  
  <p>As possible, I'd like to not have to add any build layer (such webpack), and stay with just typescript.</p>