diff --git a/chengying-front/.babelrc b/chengying-front/.babelrc new file mode 100644 index 0000000..e4772f3 --- /dev/null +++ b/chengying-front/.babelrc @@ -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" + ] + } + } +} \ No newline at end of file