We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0809fc8 commit bbfccbaCopy full SHA for bbfccba
packages/@vue/babel-preset-app/index.js
@@ -81,7 +81,14 @@ function getPolyfills (targets, includes) {
81
}
82
83
const compatData = require('core-js-compat').data
84
- return includes.filter(item => isRequired(item, targets, { compatData }))
+ return includes.filter(item => {
85
+ if (!compatData[item]) {
86
+ console.warn(`Skipping polyfill ${item} as it's not found in the compatibility table.`)
87
+ return false
88
+ }
89
+
90
+ return isRequired(item, targets, { compatData })
91
+ })
92
93
94
module.exports = (context, options = {}) => {
0 commit comments