当我运行尝试将我的应用程序与:
react-native bundle --platform ios --dev false \
--entry-file index.ios.js --bundle-output iOS/main.jsbundle
我收到以下错误,没有其他详细信息:
SyntaxError: Unexpected token: operator (*)
对于它的价值,这有效(与--dev true
):
react-native bundle --platform ios --dev true \
--entry-file index.ios.js --bundle-output iOS/main.jsbundle
我最好的猜测是问题出在 UglifyJS 步骤中的某个地方,可能与:
https://github.com/mishoo/UglifyJS2/issues/1199
有小费吗?欢迎提出更深入挖掘的建议!谢谢!