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 06a5a70 commit 5ea4285Copy full SHA for 5ea4285
‎addons/api/index.js‎
@@ -25,14 +25,20 @@ module.exports = {
25
},
26
27
included() {
28
- const env = this.parent?.app?.env ?? 'production';
29
this._super.included.apply(this, arguments);
+ const env = this.parent?.app?.env ?? 'production';
30
31
+ // these are dependencies used our mirage code within the
32
+ // api addon and should not be included in production builds,
33
+ // after this addon has been migrated to a v2 addon this can
34
+ // be removed as the addon's dependencies will be statically
35
+ // analyzable
36
if (env === 'production') {
37
this.options.autoImport.exclude.push(
38
'miragejs',
39
'sinon',
40
'@faker-js/faker',
41
+ 'js-bexpr',
42
);
43
}
44
0 commit comments