Coder Social home page Coder Social logo

Comments (11)

ecengels88 avatar ecengels88 commented on September 21, 2024 4

For those who are running into this issue, see: https://github.com/babel/ember-cli-babel#polyfill

from ember-cli-babel.

stefanpenner avatar stefanpenner commented on September 21, 2024

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.

sebmck avatar sebmck commented on September 21, 2024

@stefanpenner Not really. I'm open to an API suggestion though.

from ember-cli-babel.

stefanpenner avatar stefanpenner commented on September 21, 2024

@amasad you did something similar to this with regenerator right? Thoughts?

from ember-cli-babel.

sebmck avatar sebmck commented on September 21, 2024

@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 avatar stefanpenner commented on September 21, 2024

@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.

stefanpenner avatar stefanpenner commented on September 21, 2024

#24 / #6

from ember-cli-babel.

 avatar commented on September 21, 2024

@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.

flecno avatar flecno commented on September 21, 2024

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.

stefanpenner avatar stefanpenner commented on September 21, 2024

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.

 avatar commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.