riot / webpack-loader

Riot official webpack loader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use await keyword in tags

foximoxi opened this issue · comments

I'm not able to use await keyword to invoke some async JS functions.
Tag-loader claims that 'await' is a reserved word.

For example:

this.onClick = (e) => {
{
let data=await getSomeData();
}

I was using webpack example as a playground.
https://github.com/riot/examples/tree/gh-pages/webpack

the async await keywords should be supported. Please try again with the newest riot release