Skip to content

Instantly share code, notes, and snippets.

@copenhas
Created April 7, 2014 03:17
Show Gist options
  • Save copenhas/10014346 to your computer and use it in GitHub Desktop.
Save copenhas/10014346 to your computer and use it in GitHub Desktop.
A couple of hacks in the Traceur compiler was able to get named AMD modules without the localizing `./`
define("app/router", [], function() {
"use strict";
var __moduleName = "app/router";
var Router = Ember.Router.extend({location: 'history'});
Router.map(function() {});
var $__default = Router;
return {
get default() {
return $__default;
},
__esModule: true
};
});
@copenhas
Copy link
Author

copenhas commented Apr 7, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment