43 lines
960 B
JavaScript
43 lines
960 B
JavaScript
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
|