React Native捆绑:SyntaxError:意外的令牌:运算符(*)

Max*_*itz 2 ios uglifyjs react-native react-native-ios

当我尝试捆绑我的应用程序时:

react-native bundle --platform ios --dev false \
    --entry-file index.ios.js --bundle-output iOS/main.jsbundle
Run Code Online (Sandbox Code Playgroud)

我收到以下错误,没有其他详细信息:

SyntaxError: Unexpected token: operator (*)
Run Code Online (Sandbox Code Playgroud)

对于它的价值,这适用于(with --dev true):

react-native bundle --platform ios --dev true \
    --entry-file index.ios.js --bundle-output iOS/main.jsbundle
Run Code Online (Sandbox Code Playgroud)

我最好的猜测是问题出现在UglifyJS的某个步骤中,可能与以下内容有关:

https://github.com/mishoo/UglifyJS2/issues/1199

有小费吗?欢迎提出更深入挖掘的建议!谢谢!

Max*_*itz 5

我们找到了行号:

./node_modules/.bin/esvalidate --formatter=sublime.js ios/main.jsbundle
Run Code Online (Sandbox Code Playgroud)

问题是使用**ES6运营商.回到了Math.pow().