Skip to content

Proper exports signature #3

@ryanflorence

Description

@ryanflorence

Maybe I don't know about some AMD spec or implementation out there that uses __exports__, but the signature for using exports and module is such (see https://github.com/amdjs/amdjs-api/wiki/AMD):

define('app', ['require', 'exports', 'module'], function(require, exports, module) {
  // everything else in here is identical to commonjs
  // local require is synchronous, so anything required has to be loaded already.
  var Ember = require('ember');
  module.exports = Ember.Application.create();
});

Doing it this way will allow folks to use the r.js optimizer in conjunction with this library for sweet ES6 module bliss.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions