title: Uncaught TypeError: __webpack_require__(…).context is not a function
body: <p>When I am trying to import dynamically vue components using this code:</p>
  
  <pre class="lang-js prettyprint-override"><code>const components = require.context('./', true, '/^index\.js$/');
  </code></pre>
  
  <p>I am getting this error:</p>
  
  <pre class="lang-js prettyprint-override"><code>app.js:9 Uncaught TypeError: __webpack_require__(...).context is not a function
      at Module../asset/app.js (app.js:9)
      at __webpack_require__ (bootstrap:782)
      at fn (bootstrap:150)
      at Object.0 (app.293d5fe1d8a073fed37a.bundle.js:1747)
      at __webpack_require__ (bootstrap:782)
      at checkDeferredModules (bootstrap:45)
      at bootstrap:858
      at bootstrap:858
  </code></pre>
  
  <p>Why is that? How to fix that? What have I missed?</p>