AloisSeckar / AloisSeckar/nuxt-ignis
Broaden `vite.optimizeDeps` default setting
- Dominant language
- TypeScript
- Stars
- 18
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Currently we have: https://github.com/AloisSeckar/nuxt-ignis/blob/v0.6.0/core/nuxt.config.ts#L30
Suggestions from experimental integrations:
> Vite discovered new dependencies at runtime: 8:25:49
> @tanstack/vue-table ← ./app/components/run/Table.vue
>
> Pre-bundle them in your nuxt.config.ts to avoid page reloads:
>
> export default defineNuxtConfig({
> vite: {
> optimizeDeps: {
> include: [
> '@tanstack/vue-table',
> '@vue/devtools-core',
> '@vue/devtools-kit',
> 'axios',
> 'date-fns',
> 'lodash', // CJS
> 'nouislider',
> 'sqlstring', // CJS
> 'trix',
> 'wnumb', // CJS
> ]
> }
> }
> })
>
> Learn more: https://vite.dev/guide/dep-pre-bundling.html
Other example:
> ...
> elrh-pslo (CJS) ← ./app/components/navigation/ArticleLink.vue
> ...
> 'elrh-pslo', // CJS
Contributor guide
Assessment
This issue has not been assessed yet.