-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.js
39 lines (34 loc) · 1.03 KB
/
index.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
'use strict';
module.exports = {
name: require('./package').name,
options: {
babel: {
// This is needed for dynamic imports to work: https://github.com/ef4/ember-auto-import#installing-ember-auto-import-in-an-addon
plugins: [require.resolve('ember-auto-import/babel-plugin')],
},
'@embroider/macros': {
setOwnConfig: {
dutchDatePickerLocalization: false,
},
},
},
included: function (app) {
this._super.included.apply(this, arguments);
app.options.sassOptions = app.options.sassOptions || {};
app.options.sassOptions.includePaths =
app.options.sassOptions.includePaths || [];
let addonOptions = app.options[this.name];
if (addonOptions && addonOptions.dutchDatePickerLocalization) {
this.options[
'@embroider/macros'
].setOwnConfig.dutchDatePickerLocalization = true;
}
},
contentFor: function (type) {
if (type === 'body') {
return '<div id="ember-appuniversum-wormhole"></div>';
} else {
return '';
}
},
};