Skip to content

Commit

Permalink
fix(build): make sure to call the super functions on treeFor methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx authored and czosel committed Apr 17, 2023
1 parent 79b9197 commit 015ce0b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ module.exports = {
destDir: "/assets/images/icons",
});

return merge([uikitAssets, uikitIcons, tree].filter(Boolean));
return this._super.treeForPublic.call(
this,
merge([uikitAssets, uikitIcons, tree].filter(Boolean))
);
},

treeForStyles(tree) {
Expand All @@ -50,7 +53,10 @@ module.exports = {
destDir: "ember-uikit",
});

return merge([uikitStyles, tree].filter(Boolean));
return this._super.treeForStyles.call(
this,
merge([uikitStyles, tree].filter(Boolean))
);
},

treeForVendor(tree) {
Expand All @@ -63,7 +69,10 @@ module.exports = {
(content) => `if (typeof FastBoot === 'undefined') { ${content} }`
);

return merge([tree, uikitScripts].filter(Boolean));
return this._super.treeForVendor.call(
this,
merge([tree, uikitScripts].filter(Boolean))
);
},

included(...args) {
Expand Down

0 comments on commit 015ce0b

Please sign in to comment.