-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathember-cli-build.js
40 lines (36 loc) · 1.05 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
39
40
'use strict';
const EmberApp = require('ember-cli/lib/broccoli/ember-app');
module.exports = function (defaults) {
const app = new EmberApp(defaults, {
// Add options here
'ember-cli-babel': {
enableTypeScriptTransform: true,
// turn off the old transform
// (for this to work when using Embroider you need https://github.com/embroider-build/embroider/pull/1673)
disableDecoratorTransforms: true,
},
babel: {
plugins: [
// add the new transform.
require.resolve('decorator-transforms'),
],
},
});
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,
amdCompatibility: {
es: [],
},
// splitAtRoutes: ['route.name'], // can also be a RegExp
// packagerOptions: {
// webpackConfig: { }
// }
});
};