DimiMikadze / create-react-library

React NPM library starter kit based on Facebook's create react app
MIT License
602 stars 60 forks source link

not supporting async await #20

Closed theone3nu closed 6 years ago

theone3nu commented 6 years ago

Its not supporting async await just like crate react app does. Please add this feature. I am getting Uncaught ReferenceError: regeneratorRuntime is not defined when i use async keyword.

DimiMikadze commented 6 years ago

Hi @theone3nu

We have removed all the polyfills by default, because it was increasing very much size of the production build file and most of the libraries don't require features like fetch or async await.

So what you have to do is, to load specific polyfill either in webpack configuration or inside libraries file.