We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49cd107 commit 35a37e5Copy full SHA for 35a37e5
‎addons/api/index.js‎
@@ -45,15 +45,17 @@ module.exports = {
45
},
46
47
treeForAddon() {
48
- const includeMirage = this._includeMirageInBuild();
49
-
50
// Exclude anything in the workers folder from being bundled in the final
51
// build as we're manually bundling the files ourselves below.
+ const excludedModules = ['api/workers/**/*'];
+
52
+ if (!this._includeMirageInBuild()) {
53
+ excludedModules.push('api/mirage/**/*');
54
+ }
55
56
const tree = this._super.treeForAddon.apply(this, arguments);
57
return funnel(tree, {
- exclude: ['api/workers/**/*', !includeMirage && 'api/mirage/**/*'].filter(
- Boolean,
- ),
58
+ exclude: excludedModules,
59
});
60
61
0 commit comments