-
Notifications
You must be signed in to change notification settings - Fork 6
/
babel.config.js
34 lines (34 loc) · 1.14 KB
/
babel.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
* @Description: babel 转码配置 https://babeljs.io/docs/en/
*
* @Author: 毛瑞
* @Date: 2019-06-18 15:58:46
*/
module.exports = {
// https://cli.vuejs.org/zh/config/#babel
presets: ['@vue/cli-plugin-babel/preset'],
// plugins: [
// 'transform-decorators', // https://babeljs.io/docs/en/babel-plugin-proposal-decorators
// ['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
// '@babel/plugin-proposal-class-properties',
// polyfill 工具 https://babeljs.io/docs/en/next/babel-plugin-transform-runtime.html
// ['@babel/plugin-transform-runtime', { corejs: 3 }],
// https://github.com/ElementUI/babel-plugin-component
// [
// 'component',
// {
// libraryName: 'element-ui',
// styleLibraryName: 'theme-chalk',
// },
// ],
// ],
plugins: [
// '@babel/plugin-syntax-bigint',
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-private-methods',
// '@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
// '@babel/plugin-proposal-nullish-coalescing-operator',
],
}