Stabilizing optimizeDeps.include
glob support
#15833
Replies: 3 comments 10 replies
-
Hello... I used this... And it does not import dependency files with correct naming. And I used below code to import it...
Adding this code imports this js file to .vite/deps. but with a different naming
vite version: 4.5.2 |
Beta Was this translation helpful? Give feedback.
-
Globbing does not seem to work for me either. (vite optimizeDeps: {
include: [
"vuetify",
"vuetify/**/*.mjs",
]
}, does not work as expected but specifying each entry (that was logged previously) works: optimizeDeps: {
include: [
"vuetify/lib/components/transitions/index.mjs",
"vuetify/lib/components/VApp/index.mjs"
"vuetify/lib/components/VAppBar/index.mjs",
"vuetify/lib/components/VAvatar/index.mjs",
"vuetify/lib/components/VBtn/index.mjs",
"vuetify/lib/components/VCard/index.mjs",
"vuetify/lib/components/VChip/index.mjs",
"vuetify/lib/components/VDialog/index.mjs",
"vuetify/lib/components/VDivider/index.mjs",
"vuetify/lib/components/VExpansionPanel/index.mjs",
"vuetify/lib/components/VGrid/index.mjs",
"vuetify/lib/components/VHover/index.mjs",
"vuetify/lib/components/VIcon/index.mjs",
"vuetify/lib/components/VImg/index.mjs",
"vuetify/lib/components/VItemGroup/index.mjs",
"vuetify/lib/components/VList/index.mjs",
"vuetify/lib/components/VMain/index.mjs",
"vuetify/lib/components/VMenu/index.mjs",
"vuetify/lib/components/VNavigationDrawer/index.mjs",
"vuetify/lib/components/VProgressCircular/index.mjs",
"vuetify/lib/components/VProgressLinear/index.mjs",
"vuetify/lib/components/VSelect/index.mjs",
"vuetify/lib/components/VSkeletonLoader/index.mjs",
"vuetify/lib/components/VTabs/index.mjs",
"vuetify/lib/components/VTextarea/index.mjs",
"vuetify/lib/components/VTextField/index.mjs",
"vuetify/lib/components/VToolbar/index.mjs",
"vuetify/lib/components/VTooltip/index.mjs",
"vuetify/lib/components/VWindow/index.mjs",
"vuetify/lib/framework.mjs",
]
}, |
Beta Was this translation helpful? Give feedback.
-
Is there a reason this is not working for optimizeDeps.exclude? I seem to be able to use one wildcard (
|
Beta Was this translation helpful? Give feedback.
-
optimizeDeps.include
glob supportBeta Was this translation helpful? Give feedback.
All reactions