-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
41 lines (39 loc) · 983 Bytes
/
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
40
41
/* jshint node: true */
'use strict';
const path = require('path');
let libraryToTranspile = 'indicative';
module.exports = {
name : 'ember-form-validations',
options : {
autoImport: {
webpack: {
module: {
rules: [
{
test : new RegExp('^' + path.dirname(require.resolve(libraryToTranspile + '/package.json'))),
use : {
loader : 'ember-form-validations-babel-loader',
options : {
presets: [
['@babel/preset-env', { targets: ['ie 11', 'last 2 versions'] }]
]
}
}
}
]
},
resolveLoader: {
alias: {
'ember-form-validations-babel-loader': require.resolve('babel-loader')
}
}
}
}
},
isDevelopingAddon() {
return true;
},
included(app) {
this._super.included.apply(this, arguments);
}
};