-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathember-cli-build.js
34 lines (30 loc) · 931 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
'use strict';
const path = require('node:path');
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { Webpack } = require('@embroider/webpack');
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
'ember-cli-babel': { enableTypeScriptTransform: true },
// Add options here
});
return require('@embroider/compat').compatBuild(app, Webpack, {
staticAddonTestSupportTrees: true,
staticAddonTrees: true,
staticHelpers: true,
staticModifiers: true,
staticComponents: true,
staticEmberSource: true,
// splitAtRoutes: ['route.name'], // can also be a RegExp
packagerOptions: {
webpackConfig: {
// devtool: process.env.CI ? 'source-map' : 'eval',
devtool: 'source-map',
resolve: {
alias: {
'@foo/home': path.resolve(__dirname, 'app/domain/home'),
},
},
},
},
});
};