Skip to content

ES6 generators syntax #9

@mehranhatami

Description

@mehranhatami

The new feature allows to use ES6 generators syntax when defining modules and requiring them:

define(function* () {
  var _ = yield require('../vendor/lodash');
  return {
    //...
  };
});

But it still needs more discussion and real world feedbacks. I opened this issue to discuss all the possible feedbacks around it. Feel free to bring up your views regarding the way ES6 generators are being used in the code block above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions