I have an Ember library/addon that’s namespaced in a global object. Now that Ember-CLI is becoming the standard for Ember apps, I’d like to have it work with Ember-CLI’s module loader. I’ve already converted everything to modules, but I have a small issue. I would like the library to use modules if possible, but fall back to the global object if not. The catch is that the modules do not work with the RequireJS module loader, only Ember-CLI’s module loader. Because of this, I’d like to be able to detect the presence of Ember-CLI (its module loader) and bootstrap the library accordingly.
Is there any way to detect the Presence of Ember-CLI, specifically it’s module loader?