We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a8c7fd commit cc38420Copy full SHA for cc38420
packages/@vue/babel-preset-app/index.js
@@ -81,7 +81,13 @@ 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
+ throw new Error(`Cannot find polyfill ${item}, please refer to 'core-js-compat' for a complete list of available modules`)
87
+ }
88
+
89
+ return isRequired(item, targets, { compatData })
90
+ })
91
92
93
module.exports = (context, options = {}) => {
0 commit comments