Comments (11)
For those who are running into this issue, see: https://github.com/babel/ember-cli-babel#polyfill
from ember-cli-babel.
Ya, we need to detect and inject the regenerator runtime yet. @sebmck is their a way to inform the caller of the 6to5 if the regenerator runtime is required?
from ember-cli-babel.
@stefanpenner Not really. I'm open to an API suggestion though.
from ember-cli-babel.
@amasad you did something similar to this with regenerator right? Thoughts?
from ember-cli-babel.
@stefanpenner You're probably thinking of facebook/regenerator#155. I can easily add in an API that reports whether or not the regenerator runtime is necessary I'm just not sure what it should be, possibly passing a function that's called as an option?
from ember-cli-babel.
@stefanpenner You're probably thinking of facebook/regenerator#155. I can easily add in an API that reports whether or not the regenerator runtime is necessary I'm just not sure what it should be, possibly passing a function that's called as an option?
As I am enjoying regenerator + async await for writing tests (and want this), I will be preparing an issue for @sebmck. The idea also dove tails nicely into some other plans. I'll be AFAK for the next few days, but I hope to get the issue out sunday night or monday.
from ember-cli-babel.
from ember-cli-babel.
@flecno and/or @stefanpenner were you able to resolve this? I just started a new ember-cli project and am running into the exact same issue when trying to define a generator:
Uncaught ReferenceError: regeneratorRuntime is not defined
from ember-cli-babel.
On 07/09/2015 10:45 PM, Zach Zibrat wrote:
@flecno https://github.com/flecno and/or @stefanpenner
https://github.com/stefanpenner were you able to resolve this? I
just started a new ember-cli project and am running into the exact
same issue when trying to define a generator |Uncaught
ReferenceError: regeneratorRuntime is not defined|— Reply to this email directly or view it on GitHub
#12 (comment).Sorry, I haven't tried it again for now.
from ember-cli-babel.
today you need to include the runtime yourself (and a quick hack to make sure they use the right Promise lib)
https://github.com/stefanpenner/ember-jobs/blob/master/app/index.html#L20-L23
from ember-cli-babel.
ok, thanks very much, I'll try this. Just before you posted this, I was able to get my generator working by using the Bower package babel-polyfill
and then including in the Brocfile:
app.import('bower_components/babel-polyfill/browser-polyfill.js', { prepend: true });
from ember-cli-babel.
Related Issues (20)
- Needs bump for TS v4.5 `import type` support
- hovering when lack of open curly brace HOT 2
- Optional Chaining in delete statement removes delete statement HOT 2
- deprecate is not available from `@ember/debug` pre 4.0.0 HOT 21
- Private property transpilation broken w/ externalHelpers enabled
- Cannot build Ember on ARM64 HOT 1
- `useBabelConfig` on fresh ember-app doesn't work HOT 1
- `Could not find module '@babel/runtime/helpers/esm/regeneratorRuntime'` in a fresh new app HOT 1
- Is there a way to opt out of ember-cli-babel entirely?
- Error: Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform. HOT 2
- [QUEST] v8 Release HOT 15
- Ember is undefined HOT 3
- Potential Security Vulnerabilities Detected in Package
- ember-cli-babel@8 breaks parallelization
- Remove the "class-properties" and "private-methods" plugins HOT 2
- `includeExternalHelpers` breaks parallel builds
- Missing information about compatibility for v8
- Option for enabling `onlyRemoveTypeImports` HOT 1
- JSON5 vulnerability in v7.x of ember-cli-babel HOT 3
- Please ensure that transform-class-properties
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-cli-babel.