-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathember-cli-build.js
More file actions
46 lines (39 loc) · 1 KB
/
ember-cli-build.js
File metadata and controls
46 lines (39 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { compatBuild } = require('@embroider/compat');
module.exports = async function (defaults) {
const { buildOnce } = await import('@embroider/vite');
const { setConfig } = await import('@warp-drive/build-config');
let app = new EmberApp(defaults, {
'@embroider/macros': {
setConfig: {
'@ember-data/store': {
polyfillUUID: true,
},
},
},
fingerprint: {
enabled: false,
},
'ember-test-selectors': {
strip: false,
},
});
setConfig(app, __dirname, {
deprecations: {
DEPRECATE_TRACKING_PACKAGE: false,
DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: false,
DEPRECATE_EMBER_INFLECTOR: false,
ENABLE_LEGACY_SCHEMA_SERVICE: false,
},
});
return compatBuild(app, buildOnce, {
extraPublicTrees: [],
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
amdCompatibility: {
es: [],
},
});
};