11-main/babel.config.js
2022-10-26 16:06:12 +08:00

27 строки
569 B
JavaScript
Исходник Ответственный История

Этот файл содержит неоднозначные символы Юникода

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* @Date: 2020-12-14 09:07:03
* @LastEditors: guo
* @LastEditTime: 2020-12-29 21:34:11
* @FilePath: \basic-admin\babel.config.js
* @Description: 修改babel配置
* preset-env用于适配浏览器最新4个版本
* transform-runtime 用于识别一些比较新的js语法
*/
module.exports = {
presets: [
['@babel/preset-env', {
'useBuiltIns': 'usage',
'debug': true,
'targets': [
'last 4 versions'
]
}],
'@vue/app'
],
plugins: [
['@babel/plugin-transform-runtime', {
'corejs': 3
}]
]
}