I think this should solve your problem:
manualChunks: undefined, inlineDynamicImports: true,
If it doesn't work you can read the documentation:
https://rollupjs.org/configuration-options/#output-manualchunks