babel.config.js 408 B

123456789101112131415
  1. const plugins = []
  2. const testPreset = ['@babel/preset-env', { 'targets': { 'node': 'current' } }]
  3. const devPreset = ['@vue/app', {
  4. 'targets': {
  5. 'browsers': ['since 2015', 'not dead', 'ie 9'],
  6. },
  7. 'useBuiltIns': 'usage',
  8. // 'debug': true,
  9. }]
  10. const presets = process.env.NODE_ENV === 'test' ? testPreset : devPreset
  11. module.exports = {
  12. presets: [presets],
  13. plugins,
  14. sourceType: 'unambiguous',
  15. }