How to add async/awiat support to webix ? what extra modules to install ? what adjustment to .babelrc or ... what to do I can add await/async to current webix jet environment?
Hey @ymlan, could you please provide a bit more details about your current environment? It really depends on how you set it all up, but there should be no hindrances concerning ES6 support. For a point of reference you can take a look at a template jet starter app and see how things are configured there (it uses babel and webpack to compile the app): https://github.com/webix-hub/jet-start.
I have also needed to use async/await syntax with Webix Jet, and was getting the error "ReferenceError: regeneratorRuntime is not defined."
I solved it by installing the "babel-polyfill" and importing it in the JetApp initial file.
As recommended in this issue on Babel Github repository: https://github.com/babel/babel/issues/5085
Comments
Hey @ymlan, could you please provide a bit more details about your current environment? It really depends on how you set it all up, but there should be no hindrances concerning ES6 support. For a point of reference you can take a look at a template jet starter app and see how things are configured there (it uses babel and webpack to compile the app): https://github.com/webix-hub/jet-start.
Hello!
I have also needed to use async/await syntax with Webix Jet, and was getting the error "ReferenceError: regeneratorRuntime is not defined."
I solved it by installing the "babel-polyfill" and importing it in the JetApp initial file.
As recommended in this issue on Babel Github repository: https://github.com/babel/babel/issues/5085