Kanade-Lu
Kanade-Lu
https://github.com/unplugin/unplugin-vue-components/issues/420 you can solve it by "globs" like globs: [ '!src/components/**/excludes/*.vue', ]
太棒了 目前的 ‘如果这个资源只属于一个子包,并且其调用组件的不存在跨包调用的情况’ 这个情况在vue3目前看也会被加进去主包真是太糟糕了
社区里有人做过 “多个分包引用的js,copy到各个分包” 这种方案,很久之前我参考了一下用unplugin写了一下。可用,但是在分部分包的时候会导致程序跑不起来,具体原因我不熟悉webpack没去做过多了解,可以做一下参考 ```ts webpack(compiler) { const pluginName = 'DispatchScriptPlugin' const handledModules: Array = [] compiler.hooks.thisCompilation.tap(pluginName, (compilation) => { compilation.hooks.optimizeChunks.tap(pluginName, () => { const waitDisposeModules = [...compilation.modules].filter(module => baseTest(module, options))...
只开发小程序,没研究过app侧的情况
你的版本是?有相似的问题在上个版本已经被修复了,可以更新到最新版本测试一下
this issue seems use vue-property-decorator problem,if you use setup model with ts, type will work as expected.
This issue appears to have been forgotten. Does this behavior meet expectations?
> vuejs/core#11150 Really appreciate for your response! Next time, I will first check the compilation result to identify the issue