Skip to content

Commit

Permalink
Merge pull request #27 from DTStack/fix_front_build_error
Browse files Browse the repository at this point in the history
build(chengying-front): add the babel configuration
  • Loading branch information
wangqi811 authored Feb 2, 2023
2 parents 68f3504 + aafacc0 commit af1be58
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions chengying-front/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
],
"@babel/preset-react",
"@babel/preset-typescript"
],
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-proposal-class-properties",
[
"@babel/plugin-transform-runtime",
{
"corejs": 3
}
]
],
"env": {
"test": {
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs"
}
],
"@babel/preset-react",
"@babel/preset-typescript"
]
}
}
}

0 comments on commit af1be58

Please sign in to comment.