1 个仓库
Techniques for replacing inline helper functions with references to a shared external runtime library to reduce bundle size.
Distinct from External Asset Referencing: Existing candidates focus on asset linking or infrastructure resources, not code-level helper deduplication.
Explore 1 awesome GitHub repository matching web development · Shared Runtime Referencing. Refine with filters or upvote what's useful.
babel-loader 是一个 Webpack 插件,将 Babel 编译器集成到模块打包工作流中。它作为一个桥梁,允许在构建过程中将现代 JavaScript 转译为向后兼容的版本。 该项目通过将重复的辅助函数替换为对共享外部运行时的引用来优化包大小。为了加速后续的编译周期,它利用基于文件系统的缓存来存储已处理的文件,并避免冗余的转译。 该加载器支持环境特定的配置映射和目标配置,以针对客户端和服务器平台应用不同的转换规则。它还提供了一种将转译元数据传回模块打包器以与其他构建插件同步的机制。
Reduces final bundle size by replacing duplicated helper functions with imports from a shared external runtime.