leo / electron-next

Build Electron apps using Next.js
https://github.com/leo/site/blob/beef3a7dc1dfd435a9d8377e3b1b59761ccb7fc7/pages/2017/electron-next.js
MIT License
546 stars 41 forks source link

Minimize transpilation of async functions #24

Open acjay opened 5 years ago

acjay commented 5 years ago

With the default Next.js Babel settings, async functions are transpiled to generators, which are further translated to Regenerator. This makes debugging more awkward than it needs to be.

I can't figure out how to disable this behavior with Next.js's Babel and Webpack configurations (see also this Stack Overflow question). But it seems like this sort of change would be useful for most people using electron-next, since the JS runtime support needs are tightly targeted for a pure Electron app.