generator.js 496 B

12345678910111213141516
  1. module.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. api.extendPackage({
  8. babel: {
  9. presets: ['@vue/cli-plugin-babel/preset']
  10. },
  11. dependencies: {
  12. 'core-js': '^3.6.5'
  13. }
  14. })
  15. }