在项目目录下新建.babelrc,写入以下内容:
-
{
-
"compact": false,
-
"presets": ["env", "react", "stage-0"],
-
"plugins": [
-
"transform-runtime"
-
]
在项目目录下新建.babelrc,写入以下内容:
{
"compact": false,
"presets": ["env", "react", "stage-0"],
"plugins": [
"transform-runtime"
]