generator.js 548 B

12345678910111213141516171819
  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. vue: {
  12. transpileDependencies: true
  13. },
  14. dependencies: {
  15. 'core-js': '^3.8.3'
  16. }
  17. })
  18. }