The ‘ember-cli-ember-data’ node module adds ember-data to the generated Ember CLI output (via vendor.js). If you look at this module’s index.js, in the EmberCLIED.prototype.included
function, you will see the following references to ember-data in the vendor directory:
EmberCLIED.prototype.included = function included(app) {
this.app = app;
var options = {
exports: {
'ember-data': [
'default'
]
}
};
if (this.app.env === 'production') {
this.app.import('vendor/ember-data/ember-data.prod.js', options); // <--
} else {
this.app.import('vendor/ember-data/ember-data.js', options); // <--
}
};
That’s how Ember CLI knows where to find ember-data.