init project

This commit is contained in:
wangwenzhang
2020-04-03 16:34:17 +08:00
parent bedc021581
commit c01cde6c20
11 changed files with 7245 additions and 2 deletions

42
babelrc.js Normal file
View File

@@ -0,0 +1,42 @@
const babelConfig = {
presets: [
[
'@babel/preset-env',
{
targets: {
chrome: '58',
ie: '6'
}
}
]
],
plugins: [
[
'@babel/plugin-transform-runtime',
{
corejs: false,
helpers: true,
regenerator: true,
useESModules: false
}
],
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', { loose: true }],
'@babel/plugin-proposal-json-strings',
[
'@babel/plugin-proposal-decorators',
{
legacy: true
}
],
'@babel/plugin-proposal-function-sent',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-numeric-separator',
'@babel/plugin-proposal-throw-expressions',
'@babel/plugin-transform-modules-commonjs'
]
}
module.exports = babelConfig