Results 1 to 3 of 3

Thread: Can sencha app watch command produce ES5 code if we have javascript code in ES6

  1. #1
    Sencha User
    Join Date
    Oct 2018
    Location
    Noida
    Posts
    54

    Default Can sencha app watch command produce ES5 code if we have javascript code in ES6

    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.

  2. #2
    Sencha Premium User
    Join Date
    May 2009
    Posts
    79

    Default

    I'm so bummed to see that this question went unanswered. I'm running into the same issue because our team has to build IE-compliant apps, and it's very frustrating that we cant use most ES6+ features and still get HMR/Watch capability (since we need to test in IE).

    @praveensaini23 - did you find an answer to this?

  3. #3
    Sencha User
    Join Date
    Oct 2018
    Location
    Noida
    Posts
    54

    Default

    I am still doing the same way that I mentioned above like, give above config in app.json and then create build via sencha app build testing command. Then test that build in IE.
    Note that the testing build will have IE understandable syntax.


    But no solution yet with sencha watch.

Similar Threads

  1. Replies: 0
    Last Post: 2 Jul 2017, 8:29 PM
  2. How to sync code on code viewer of Sencha Architect and real source code ?
    By veeva_hiroyuki_nagata in forum Sencha Architect 4.x: Q&A
    Replies: 1
    Last Post: 30 Nov 2016, 5:44 AM
  3. How to produce a production build of generated Architect code?
    By parky128 in forum Sencha Architect 2.x: Help & Discussions
    Replies: 0
    Last Post: 18 Nov 2013, 6:59 AM
  4. How to integrate the Google Map Javascript code for DirectionsRender in Sencha Panel
    By neelesh jain in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 5 Sep 2012, 5:04 AM
  5. How to include code snippet of javascript in the code written in EXT-GWT?
    By Amulya in forum Ext GWT: Help & Discussion (1.x)
    Replies: 1
    Last Post: 28 Apr 2009, 11:30 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •