-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.babelrc.js
51 lines (50 loc) · 1015 Bytes
/
.babelrc.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
42
43
44
45
46
47
48
49
50
51
const helperWhitelist = require('./node_modules/@fooloomanzoo/input-picker-pattern/utils/babel/helper-whitelist');
module.exports = {
presets: [
[
'@babel/preset-env',
{
modules: false,
exclude: ['transform-async-to-generator', 'transform-regenerator'],
targets: {
ie: 11
}
}
]
],
plugins: [
[
'@babel/external-helpers',
{
whitelist: helperWhitelist
}
],
'@babel/syntax-dynamic-import',
'@babel/syntax-object-rest-spread',
[
'module:fast-async',
{
spec: true
}
]
],
env: {
production: {
plugins: [
[
'template-html-minifier',
{
modules: {
'@polymer/polymer/lib/utils/html-tag.js': ['html']
},
htmlMinifier: {
collapseWhitespace: true,
minifyCSS: true,
removeComments: true
}
}
]
]
}
}
};