-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathember-cli-build.js
More file actions
36 lines (32 loc) · 1009 Bytes
/
ember-cli-build.js
File metadata and controls
36 lines (32 loc) · 1009 Bytes
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
'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 app = new EmberApp(defaults, {
emberData: {
deprecations: {
// New projects can safely leave this deprecation disabled.
// If upgrading, to opt-into the deprecated behavior, set this to true and then follow:
// https://deprecations.emberjs.com/id/ember-data-deprecate-store-extends-ember-object
// before upgrading to Ember Data 6.0
DEPRECATE_STORE_EXTENDS_EMBER_OBJECT: false,
},
},
babel: {
plugins: [
require.resolve('ember-concurrency/async-arrow-task-transform'),
],
},
});
return compatBuild(app, buildOnce, {
staticInvokables: true,
splitAtRoutes: [
'boxscore',
'index',
'league-leaders',
'player',
'standings',
],
});
};