Skip to content

Commit

Permalink
fix super
Browse files Browse the repository at this point in the history
  • Loading branch information
runspired committed Nov 30, 2019
1 parent 18a9e41 commit 69ce3e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/-ember-data/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module.exports = Object.assign({}, addonBaseConfig, {
];
},
treeForAddon(tree) {
// if we don't do this we won't have a super when we call addonBaseConfig
this._super = this._super;
tree = merge([tree, version()]);
return addonBaseConfig.treeForAddon.call(this, tree);
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ function addonBuildConfigForDataPackage(PackageName) {
},

treeForAddon(tree) {
if (process.env.EMBER_DATA_ROLLUP_PRIVATE !== 'false' && this.shouldRollupPrivate !== true) {
if (process.env.EMBER_DATA_ROLLUP_PRIVATE === 'false' || this.shouldRollupPrivate !== true) {
if (!this._super) {
throw new Error(`WAT`);
}
return this._super.treeForAddon.call(this, tree);
}

Expand Down

0 comments on commit 69ce3e0

Please sign in to comment.