AloisSeckar / AloisSeckar/nuxt-ignis

Broaden `vite.optimizeDeps` default setting

未关闭
#195 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement v0.7 target
主要语言
TypeScript
星标
18
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。