123456789101112131415 |
- const plugins = []
- const testPreset = ['@babel/preset-env', { 'targets': { 'node': 'current' } }]
- const devPreset = ['@vue/app', {
- 'targets': {
- 'browsers': ['since 2015', 'not dead', 'ie 9'],
- },
- 'useBuiltIns': 'usage',
- // 'debug': true,
- }]
- const presets = process.env.NODE_ENV === 'test' ? testPreset : devPreset
- module.exports = {
- presets: [presets],
- plugins,
- sourceType: 'unambiguous',
- }
|