title: Error when using web workers with Angular, transpiler removes a piece of code
body: <p>I've got the following code in my Angular application:</p>
  <pre><code>      const worker = new Worker(&quot;./filter.worker.ts&quot;, {
          type: &quot;module&quot;,
        });
  </code></pre>
  <p>Which Angular transpiles to the following:</p>
  <pre><code>  var worker = new Worker(__webpack__worker__0, {
              ,
          });
  </code></pre>
  <p>And that gives me an error in the browser
  <code>SyntaxError: Unexpected token ','</code></p>
  <p>I have the following versions of angular packages:</p>
  <pre><code>  &quot;@angular/cdk&quot;: &quot;^8.2.3&quot;,
    &quot;@angular/common&quot;: &quot;^8.2.14&quot;,
    &quot;@angular/compiler&quot;: &quot;^8.2.14&quot;,
    &quot;@angular/core&quot;: &quot;^8.2.14&quot;,
    &quot;@angular-devkit/build-angular&quot;: &quot;^0.803.25&quot;,
    &quot;@angular/cli&quot;: &quot;^8.3.25&quot;,
    &quot;@angular/compiler-cli&quot;: &quot;^8.2.14&quot;,
    &quot;@angular/language-service&quot;: &quot;^8.2.14&quot;,
  </code></pre>