Polyfills

Let's also add the Babel polyfills to use new JavaScript features in older browsers.

  1. Install the babel-polyfill package in your dev dependencies:
      npm i -D babel-polyfill
  1. Import it at the beginning of the src/main.js file:
      import 'babel-polyfill'

This will enable all the necessary polyfills for the browser.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.103.5