Vue 3 CLI - How to add babel polyfill for Object.entries
问题 I have a dependency (vue2-google-maps) which is causing issues with my Vue app in older browsers, throwing an error with Object.entries . Reading the Vue CLI Docs on polyfills, I see it mention trying to load the polyfill in babel.config.js . My babel.config.js : module.exports = { presets: [ ['@vue/app', { polyfills: [ 'es6.object' ] }] ] } Throws an error: Module build failed (from ./node_modules/babel-loader/lib/index.js): TypeError: [BABEL] /PROJECT_DIR/src/main.js: Cannot read property