UNPKG

548 BJavaScriptView Raw
1module.exports = api => {
2 // Most likely you want to overwrite the whole config to ensure it's working
3 // without conflicts, e.g. for a project that used Jest without Babel.
4 // It should be rare for the user to have their own special babel config
5 // without using the Babel plugin already.
6 delete api.generator.files['babel.config.js']
7
8 api.extendPackage({
9 babel: {
10 presets: ['@vue/cli-plugin-babel/preset']
11 },
12 vue: {
13 transpileDependencies: true
14 },
15 dependencies: {
16 'core-js': '^3.8.3'
17 }
18 })
19}