title: Vuejs 3 - what's the alternative of require.context in vitejs
body: <p>I'm looking for way to make the same logic of <code>require.context</code> of webpack in vitejs, I've found this plugin named <a href="https://github.com/vbenjs/vite-plugin-import-context" rel="nofollow noreferrer">vite-plugin-import-context</a>, I tried it out but there's something that I didn't understand which is <code>import dynamicImport from '../src/index'</code> in the basic usage :</p>
  <pre><code>import { UserConfigExport } from 'vite';
  import vue from '@vitejs/plugin-vue';
  
  import dynamicImport from '../src/index';// &lt;-- this is not described
  
  export default (): UserConfigExport =&gt; {
    return {
      plugins: [vue(), dynamicImport(/*options*/)],
    };
  };
  </code></pre>