AloisSeckar / AloisSeckar/nuxt-ignis

Broaden `vite.optimizeDeps` default setting

Đang mở
#195 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement v0.7 target
Ngôn ngữ chính
TypeScript
Star
18
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.