The problem is that the default UglifyJsPlugin of nativescript-dev-webpack does not support the => notation, as it does not support ES6. This issue explains the problem. I was able to solve it simply by replacing the => with function() {} in resource.common.js.
When attempting to use webpack with uglify the process fails giving this message:
This refers to the following line:
The problem is that the default UglifyJsPlugin of nativescript-dev-webpack does not support the => notation, as it does not support ES6. This issue explains the problem. I was able to solve it simply by replacing the => with function() {} in resource.common.js.