上QQ阅读APP看书,第一时间看更新
Shimming methods with Babel Polyfill
In the previous two recipes, we saw how to create a client bundle and load it into a browser. This make it possible to use ES modules in source code without breaking compatibility with older browsers.
However, there are also new methods available in newer versions of the language that we'll be using in later chapters.
This recipe demonstrates how to use the babel-polyfill library to support those methods.