Skip to content

Commit

Permalink
Pass options with availableModules to import.
Browse files Browse the repository at this point in the history
  • Loading branch information
abuiles committed Jun 21, 2014
1 parent 0b98e2c commit 4e18663
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,18 @@ EmberCLIED.prototype.treeFor = function treeFor(name) {

EmberCLIED.prototype.included = function included(app) {
this.app = app;
var modules = {
'ember-data': [
'default'
]
var options = {
availableModules: {
'ember-data': [
'default'
]
}
};

if (this.app.env === 'production') {
this.app.import('vendor/ember-data/ember-data.prod.js', modules);
this.app.import('vendor/ember-data/ember-data.prod.js', options);
} else {
this.app.import('vendor/ember-data/ember-data.js', modules);
this.app.import('vendor/ember-data/ember-data.js', options);
}
};

Expand Down

0 comments on commit 4e18663

Please sign in to comment.