Hi All,
In my ExtJS 6.5 application, code is written in ES6 syntax. When I am creating a testing build, app.js file is also have the code in ES6. I have fixed that problem by putting below line under output config in app.json file -
"js": {
"path": "app.js",
"version": "ES5"
}
Above is working fine when we are running command - sencha app build testing.
The problem is I need that ES5 code without running build command, it should be happening automatically from running sencha app watch command.
Means I will run sencha app watch in console, and try to make any change in file, cmd is compiling scss file and creating css file, so I need same thing, when I will make any change in JS code and write any ES6 syntax, sencha app watch should catch the changes immidiately and should rewrite the app.js file in ES5 syntax.
Waiting for the answer, thanks.