Babel not Polyfilling Fetch when using babel-preset-env

前端 未结 4 430
夕颜
夕颜 2020-12-20 13:25

I\'m using Webpack and Babel to build and transpile my ES6 code. However I am missing important Polyfills when trying to support older browsers. e.g iOS8.

Here\'s my

4条回答
  •  旧时难觅i
    2020-12-20 14:00

    Babel doesn't add polyfill for web specifications. You can only use polyfills to implement ECMAScript's proposals listed here. It needs to be implemented manually. Github's fetch polyfill or other alternatives can be used.

提交回复
热议问题