We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esmodule特点:
tree shaking主要是利用了es module静态化的特点,在编译的阶段就能确定模块的依赖关系。通过静态分析找到没有引入的模块并给这些模块打上标记,最后在优化压缩阶段将这些用不到的代码删除。
由于common js支持动态导入,需要项目运行时才知道最终的模块依赖,因此common js不支持tree shaking;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
esmodule特点:
tree shaking主要是利用了es module静态化的特点,在编译的阶段就能确定模块的依赖关系。通过静态分析找到没有引入的模块并给这些模块打上标记,最后在优化压缩阶段将这些用不到的代码删除。
由于common js支持动态导入,需要项目运行时才知道最终的模块依赖,因此common js不支持tree shaking;
The text was updated successfully, but these errors were encountered: