You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to use async await without having to configure anything. Just like the parceljs website says it: Blazing fast, zero configuration web application bundler.
I understand the "zero configuration" part is marketing-ish and that ultimately you always endup configuring parcel a bit in case of exotic usage. Though a lot less than webpack in my experience for sure!
When I first tried to use parcel yesterday, out of three hours of setup I spent 80% of my time struggling with making async/await expressions work. While I believe they are nowadays the "new" norm (and so, not exotic) on how to write asynchronous code and even what we teach to new JavaScript developers. Thus I believe async/await should work out of the box using parcel and that's not the case today.
Uncaught ReferenceError: regeneratorRuntime is not defined
at parcel-example.e31bb0bc.js:117
at Object.parcelRequire.index.js (parcel-example.e31bb0bc.js:136)
at newRequire (parcel-example.e31bb0bc.js:49)
at parcel-example.e31bb0bc.js:81
at parcel-example.e31bb0bc.js:107
A duplicate of #1762. But zero configuration is a good point. Can't babel determine by itself if the runtime is needed? (If not, there should at least be a more helpful warning.)
🙋 feature request
I would like to be able to use async await without having to configure anything. Just like the parceljs website says it: Blazing fast, zero configuration web application bundler.
I understand the "zero configuration" part is marketing-ish and that ultimately you always endup configuring parcel a bit in case of exotic usage. Though a lot less than webpack in my experience for sure!
When I first tried to use parcel yesterday, out of three hours of setup I spent 80% of my time struggling with making async/await expressions work. While I believe they are nowadays the "new" norm (and so, not exotic) on how to write asynchronous code and even what we teach to new JavaScript developers. Thus I believe async/await should work out of the box using parcel and that's not the case today.
🤔 Expected Behavior
index.js
This should work without any error.
😯 Current Behavior
This triggers an error in console.
💁 Possible Solution
.babelrc
🔦 Context
(Read description)
💻 Examples
Here's a repository reproducing the error: https://github.com/vvo/parcel-async-await-test
The text was updated successfully, but these errors were encountered: