-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mergeConfig can't unset manualChunks with inlineDynamicImports #19243
Comments
I think some limitations of {
name: 'test',
config(config) {
delete config.build.rollupOptions.output.manualChunks;
config.build.rollupOptions.output.inlineDynamicImports = true;
}
} |
I think you can also use We could support something like |
Unfortunately,
I know the plugin option; it's what I'm currently using, but I was checking if there was a cleaner and more straightforward way 👍 |
Let me close this as it seems reasonable to rely on plugins for further control. FYI, there's an issue discussing a similar situation about |
Describe the bug
I have a problem trying to unset
manualChunks
from the default config usingmergeConfig
.My default config defines some manualChunks:
My appConfig defines
inlineDynamicImports=true
, so I need to setmanualChunks=undefined
. But this is not possible.Vite should allow
How can I achieve this?
Reproduction
https://stackblitz.com/edit/vitejs-vite-1hhvb7yf?file=vite.config.ts
Steps to reproduce
npm i && num run build
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: