如何区分 babel polyfill 和 transform-runtime
官方文档上 Runtime transform Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals 从最终的行为来解释就是说babel引入了helper工具函数自动来执行polyfill并且不污染全局作用于,采用require的方式。 This plugin is recommended in a library/tool. 推荐在工具库中使用。 NOTE: Instance methods such as “foobar”.includes(“foo”) will not work since that would require modification of existing built-ins (Use babel-polyfill for that). 同时该插件并不会转换诸如数组的includes方法 polyfill This will…