We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.4.1
babel.config.js
module.exports = { presets: [ [ '@vue/app', { polyfills: [ 'es6.promise', 'es6.symbol', 'es7.array', ] } ] ], };
build should run, or at least produce a reasonable error message
build crashes with "cannot read property 'android' of undefined"
can be "fixed" by e.g.
function getPolyfills (targets, includes, { ignoreBrowserslistConfig, configPath }) { const { isPluginRequired } = require('@babel/preset-env') const builtInsList = require('@babel/preset-env/data/built-ins.json') const getTargets = require('@babel/preset-env/lib/targets-parser').default const builtInTargets = getTargets(targets, { ignoreBrowserslistConfig, configPath }) return includes.filter(item => { return ( builtInsList[item] === undefined ) ? false : isPluginRequired(builtInTargets, builtInsList[item]) }) }
The text was updated successfully, but these errors were encountered:
fix: warn on non-existent polyfill names instead of throwing error
bbfccba
Fixes vuejs#3578
fix: better error message for non-existent polyfill names (#5543)
cc38420
Fixes #3578
Successfully merging a pull request may close this issue.
Version
3.4.1
Steps to reproduce
babel.config.js
What is expected?
build should run, or at least produce a reasonable error message
What is actually happening?
build crashes with "cannot read property 'android' of undefined"
can be "fixed" by e.g.
The text was updated successfully, but these errors were encountered: