How to convert ES6 to ES5 in the Cordova through a hook?

1

The Cordova crosswalk plugin does not work on iOS, so iOS WebView remains native. The problem is that the native WebView (Safari) does not run ES6, but my project is written in ES6.

I need a kind of recursive hook that converts all parts of my project in ES6 to ES5 from the command cordova emulate ios .

obs1 I know there is a way to install Crosswalk manually in Cordova for iOS, but this alternative would break my project because this WebView is not the same as Chrome and does not have certain APIs. p>

obs2 My project does not use ES6 modules, just simpler features: arrow functions, object notations, template strings etc ...

    
asked by anonymous 02.08.2016 / 04:41

0 answers