-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathember-cli-build.js
More file actions
32 lines (28 loc) · 811 Bytes
/
ember-cli-build.js
File metadata and controls
32 lines (28 loc) · 811 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
'use strict';
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
const urls = require('./node-tests/url-tester');
module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
// This is the configuration for Prember's dummy app that we use
// to test prember. You would do something similar to this in your
// own app's ember-cli-build.js to configure prember, see the
// README.
prember: {
enabled: true,
urls,
},
});
const { maybeEmbroider } = require('@embroider/test-setup');
const appTree = maybeEmbroider(app, {
skipBabel: [
{
package: 'qunit',
},
],
});
if ('@embroider/core' in app.dependencies()) {
return require('./index').prerender(app, appTree);
} else {
return appTree;
}
};