Then you can use it in vite.config.ts: // vite.config.tsimport{chunkSplitPlugin}from'vite-plugin-chunk-split';{plugins:[// ...chunkSplitPlugin()]} Options typepackageInfo=string|RegExp;typeStrategy=// split by default|'default'// all files will be together|'all-in-one'// unbundle ...
Check that there isn'talready an issuethat reports the same bug to avoid creating a duplicate. Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported tovuejs/coreinstead. Check that this is a concre...
//vite.config.js import{splitVendorChunkPlugin}from'vite' exportdefaultdefineConfig({ plugins:[splitVendorChunkPlugin()], }) ``` This strategy is also provided as a`splitVendorChunk({ cache: SplitVendorChunkCache })`factory, in case composition with custom logic is needed.`cache.reset()`need...
vitepluginchunksplit 是一个针对 Vite 的插件,旨在优化代码拆包效果。通过这个插件,用户可以更好地控制项目中代码的拆包过程,实现更精细化的配置和优化。该插件简单易用,能够帮助开发者更轻松地对项目进行代码拆分,提升应用性能和加载速度。通过 vitepluginchunksplit,用户可以根据自己的需求和项目特点,灵活地设置代码...
Related plugins plugin-vue plugin-vue-jsx Describe the bug I have a vite project using the vue plugin and have multiple entry points. The project uses Vue SFCs extensively, and has a number of small components such as buttons, tooltips a...
// vite.config.tsimport{chunkSplitPlugin}from'vite-plugin-chunk-split';{plugins:[// ...chunkSplitPlugin()]} Options typepackageInfo=string|RegExp;typeStrategy=// split by default|'default'// all files will be together|'all-in-one'// unbundle for your source files,vite will generate one...