Shimada666 / v-code-diff

A vue code diff display plugin, support Vue2 / Vue3
https://shimada666.github.io/v-code-diff/
MIT License
407 stars 68 forks source link

Why is global registration recommended? #130

Closed syuilo closed 9 months ago

syuilo commented 9 months ago

In the README, global registration of the component is recommended, and local registration seems to be left for compatibility.

Global registration generally makes tree-shaking difficult, so local registration superior.

I hope you continue to support local registration in future versions unless there is some obvious reason not to.

Thanks for this great library.

Shimada666 commented 9 months ago

Before, I had some misconceptions about tree-shaking. After receiving your issue, I tested it and found that you are right. I will reconsider, and keep the feature for local registration. Thank you for your suggestion!

syuilo commented 9 months ago

Thank you!