vite-plugin-dynamic-import
vite-plugin-dynamic-import copied to clipboard
Enhance Vite builtin dynamic import
I have this case import(`./extensions/${extension}.tsx`) in the extensions folders I have: extensions/Test.tsx extensions/subfolder/Test1.tsx the plugin consider only a files in extensions folder. Webpack instead consider also all subfolders with the...
Hey there, I am curious to know if it is possible to add import map support. Thanks.
I have some code that dynamically loads the locale for use with the `date-fns` library: ``` const localeObj = await import(`date-fns/locale/${locale}/index.js` ``` I was able to use `vite-plugin-dynamic-import` to get...
Imports don't work when inside `defineAsyncComponent()` for Vue 2/3 ```js const Icon = defineAsyncComponent( () => import(`module-name/icons/${name}.svg`) ) ``` **Vite Config:** ```js export default { plugins: [ vue(), dynamicImport(), ],...
I want to use it with vite-plugin-federation, but I found that vite-plugin-dynamic-import cannot be resolved. vite.config.js ```ts plugins: [ vue(), dynamicImport(), federation({ name: 'edoms-runtime', remotes: { 'remote-ui': 'http://localhost:8001/assets/remoteEntry.js', }, shared:...
In version `1.2.7` dynamic imports are working fine on Windows, but starting from `1.3.0` there's an issue (maybe a regression of #38?). # `1.2.7` Dynamic imports are working on Windows,...
For the following dynamic import ``` import(`./components/${singlePathName}/index.vue`) ``` If `singlePathName` is `"A"` or `"B"`, in the following generated code, `case "./components/A"` and `case "./components/A/index"` are not necessary ``` switch (n)...
Using `createServer` are there any scenarios where this plugin would not add `// [vite-plugin-dynamic-import] runtime -S-` to the compiled source code? I'm running into a situation where this plugin seems...
Anything that can be done about this? https://gist.github.com/gajus/bd73e4feb0dc2c9de0338318f231761a
Hello, I use vite-plugin-dynamic-import to import my .vue files into Nuxt3 (3.0.0-rc.3). However, since version 0.9.6 and all higher versions of vite-plugin-dynamic-import, I have the following error: "ERROR Unexpected token...