title: Splitting a Web-Worker in several Typescript files in Angular2+
body: <p>I run some Typescript code on a Web-Worker using <a href="https://stackoverflow.com/a/43834750/9836316">the file-loader given on this page</a> and it works as expected in my Angular 6 app.</p>
  
  <p>For a better readability and maintainability of the code running on the Web-Worker, I need to split it in <strong>several Typescript (.ts) files</strong>.</p>
  
  <p>I already tryied using <strong>require('worker!...')</strong> or <strong>importScripts('filename.js')</strong>, but i didn't manage to get them work with a Typescript (.ts) file. If possible, I would prefer an integrated build system the same way we import a Service in Angular2+.</p>
  
  <p>Any help would be appreciated,
  Regards.</p>