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