web-maker
web-maker copied to clipboard
Async/Await not supported
I created a simple vue app with an async method to pull in test data. Web Maker gives out the unexpected identifier error at the line where i await the request. Is there a way to support async/await operations?
new Vue({
el: '#app',
data: () => ({
posts: []
}),
mounted() {
this.loadData()
},
methods: {
async loadData() {
const res = await axios.get('https://jsonplaceholder.typicode.com/posts')
this.posts = res.data
}
}
})
Seems like it's time to update Esprima. Will check with latest Esprima and update here.