Vue 3 CLI - How to add babel polyfill for Object.entries
You need to change es6.object
to es7.object.entries
to make Object.entries
work on older browsers.
So your /babel.config.js
should look like the following:
module.exports = { presets: [ [ "@vue/app", { polyfills: ["es7.object.entries"] } ] ]};
I have found the polyfills name here: built-in-features.js#L153