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
Webpack5 之前,我们会使用 cache-loader 缓存一些性能开销较大的 loader ,或者是使用 hard-source-webpack-plugin 为模块提供一些中间缓存。在 Webpack5 之后,默认就为我们集成了一种自带的缓存能力(对 module 和 chunks 进行缓存)
https://juejin.cn/post/6924258563862822919#heading-17
The text was updated successfully, but these errors were encountered:
No branches or pull requests
构建时新特性
内置静态资源构建能力-Asset Modules
内置 FileSystem Cache 能力加速二次构建
Webpack5 之前,我们会使用 cache-loader 缓存一些性能开销较大的 loader ,或者是使用 hard-source-webpack-plugin 为模块提供一些中间缓存。在 Webpack5 之后,默认就为我们集成了一种自带的缓存能力(对 module 和 chunks 进行缓存)
拓展了 WebAssembly 的异步加载能力(sync/async)
内置 Web Worker
运行时新特性
移除了 Node.js Polyfills,Polyfill 交由开发者自由控制,由于移除了 Node.js Polyfills,如果前端包里使用了 process、path 这些依赖,需要手动添加 Polyfill 支持。
https://juejin.cn/post/6924258563862822919#heading-17
The text was updated successfully, but these errors were encountered: