Skip to content

Commit

Permalink
build(chengying-front): add the babel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaoei committed Feb 1, 2023
1 parent 68f3504 commit aafacc0
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 aafacc0

Please sign in to comment.