Closed KesionX closed 2 years ago
我在组件库内使用capi,发现它会导致打包的时候无法tree-shaking
eg: 组件A
export default defineComponent({ name: 'xx', setup() {} })
index.js
import A from 'a.vue' // not use A console.log('hello');
打包后仍然会把A打入
Please provide a minimal reproduction.
Stale issue message
我在组件库内使用capi,发现它会导致打包的时候无法tree-shaking
eg: 组件A
index.js
打包后仍然会把A打入