Skip to content

Commit c6e5545

Browse files
committed
eject以后的报错信息(不影响项目运行)
项目报错 Using `babel-preset-react-app` requires that you specify `NODE_ENV` or `BABEL_ENV` 报错解决
1 parent 788cd3d commit c6e5545

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

1-demo/package.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,15 @@
6666
"extends": [
6767
"react-app",
6868
"react-app/jest"
69-
]
69+
],
70+
"parserOptions": {
71+
"babelOptions":{
72+
"presets":[
73+
["babel-preset-react-app", false],
74+
["babel-preset-react-app/prod"]
75+
]
76+
}
77+
}
7078
},
7179
"browserslist": {
7280
"production": [

0 commit comments

Comments
 (0)