File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -307,7 +307,7 @@ AutoImport({
307
307
308
308
// Include auto-imported packages in Vite's `optimizeDeps` options
309
309
// Recommend to enable
310
- viteOptimizeDeps: false ,
310
+ viteOptimizeDeps: true ,
311
311
312
312
// Inject the imports at the end of other imports
313
313
injectAtEnd: true ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export default createUnplugin<Options>((options) => {
23
23
} ,
24
24
vite : {
25
25
async config ( config ) {
26
- if ( ! options . viteOptimizeDeps )
26
+ if ( options . viteOptimizeDeps === false )
27
27
return
28
28
29
29
const exclude = config . optimizeDeps ?. exclude || [ ]
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ export interface Options {
190
190
/**
191
191
* Include auto-imported packages in Vite's `optimizeDeps` option
192
192
*
193
- * @default false
193
+ * @default true
194
194
*/
195
195
viteOptimizeDeps ?: boolean
196
196
}
You can’t perform that action at this time.
0 commit comments