title: Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
body: <p>Has anyone faced below warning in "ng serve"?</p>
  
  <blockquote>
    <p>WARNING in ./node_modules/@angular/compiler/src/util.js
    10:24-31 Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
    ℹ ｢wdm｣: Compiled with warnings.</p>
  </blockquote>
  
  <p>Angular versioning:</p>
  
  <blockquote>
    <p>Angular CLI: 6.0.8
    Node: 8.11.3
    OS: darwin x64
    Angular: 6.0.9
    ... animations, common, compiler, compiler-cli, core, forms
    ... http, language-service, platform-browser
    ... platform-browser-dynamic, router, upgrade</p>
  </blockquote>
  
  <p>I tried updating CLI and Angular but no success. Code inside util.js looks like:</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>function (factory) {
      if (typeof module === "object" &amp;&amp; typeof module.exports === "object") {
          var v = factory(require, exports);
          if (v !== undefined) module.exports = v;
      }
      else if (typeof define === "function" &amp;&amp; define.amd) {
          define("@angular/compiler/src/util", ["require", "exports"], factory);
      }
  }</code></pre>
  </div>
  </div>
  </p>