-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathember-cli-build.js
42 lines (38 loc) · 964 Bytes
/
ember-cli-build.js
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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
/**
* Tweaks to this over the default:
* - enabled typescript
* - sourcemaps always on
*/
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
// Add options here
'ember-cli-babel': {
enableTypeScriptTransform: true,
},
sourcemap: true,
});
const { Webpack } = require('@embroider/webpack');
return require('@embroider/compat').compatBuild(app, Webpack, {
extraPublicTrees: [],
staticAddonTrees: true,
staticAddonTestSupportTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
staticEmberSource: true,
// the ember-inspector doesn't yet support this
// staticEmberSource: true,
// amdCompatibility: {
// es: [],
// },
// splitAtRoutes: ['route.name'], // can also be a RegExp
packagerOptions: {
webpackConfig: {
// Highest fidelity
devtool: 'source-map',
},
},
});
};