-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
ember-cli-build.js
38 lines (32 loc) · 1.04 KB
/
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
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = async function (defaults) {
const { setConfig } = await import('@warp-drive/build-config');
const { macros } = await import('@warp-drive/build-config/babel-macros');
const app = new EmberApp(defaults, {
babel: {
// this ensures that the same build-time code stripping that is done
// for library packages is also done for our tests and dummy app
plugins: [...macros()],
},
'ember-cli-babel': {
throwUnlessParallelizable: true,
enableTypeScriptTransform: true,
},
// autoImport: {
// forbidEval: true,
// webpack: {
// devtool: 'source-map',
// optimization: {
// minimize: false,
// moduleIds: 'named',
// },
// },
// },
});
setConfig(app, __dirname, {
compatWith: process.env.EMBER_DATA_FULL_COMPAT ? '99.0' : null,
});
app.import('node_modules/@warp-drive/diagnostic/dist/styles/dom-reporter.css');
return app.toTree();
};