Let's also add the Babel polyfills to use new JavaScript features in older browsers.
- Install the babel-polyfill package in your dev dependencies:
npm i -D babel-polyfill
- Import it at the beginning of the src/main.js file:
import 'babel-polyfill'
This will enable all the necessary polyfills for the browser.