Tree-shaking is the process of eliminatingdead, useless, or unused code, which drastically decreases the build size of anapplication if you compare this to an enterprise application with thousands offiles and-somtimes unknowingly-unused files that can lead to a bloated andheavy project.
树形结构调整是一个消除死代码、无用代码或未使用代码的过程,如果与企业应用程序相比,树形结构调整会大大减少应用程序的构建规模,因为企业应用程序有成千上万的文件,有时还会有不知不觉中未使用的文件,这可能会导致项目臃肿笨重。
Vue 3 supports tree-shaking right out ofthe box, eliminating unused files and code, thereby decreasing the build sizeand increasing the project's performance.
Vue 3 支持开箱即用的树状结构,可消除未使用的文件和代码,从而减少构建大小并提高项目性能。
领取专属 10元无门槛券
私享最新 技术干货