From 66db36a94f72e9e15fd0c24d55098877ddb34ebf Mon Sep 17 00:00:00 2001 From: Georg Kothmeier Date: Thu, 16 Feb 2017 09:22:56 +0100 Subject: [PATCH] Add guard to treeFor method for addon tree Otherwise ember-data-factory guy ends up in vendor.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4c6819c3..c304ab22 100644 --- a/index.js +++ b/index.js @@ -52,7 +52,7 @@ module.exports = { // Not sure why this is necessary, but this stops the factory guy files // from being added to app tree. Would have thought that this would have // happened in treeForApp above, but not the case - if (!this.includeFactoryGuyFiles && name === 'app') { + if (!this.includeFactoryGuyFiles && (name === 'app' || name === 'addon')) { return; } return this._super.treeFor.apply(this, arguments);