-
Notifications
You must be signed in to change notification settings - Fork 6
/
babel.config.js
44 lines (42 loc) · 1022 Bytes
/
babel.config.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
/*eslint-env node*/
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
esmodules: true,
},
},
],
'@babel/typescript',
],
plugins: [
'lodash',
'@babel/plugin-transform-runtime',
[
'transform-imports',
{
vuetify: {
transform: 'vuetify/es5/components/${member}',
preventFullImport: true,
},
lodash: {
transform: 'lodash/${member}',
preventFullImport: true,
},
'@fortawesome/free-solid-svg-icons': {
transform: '@fortawesome/free-solid-svg-icons/${member}',
skipDefaultConversion: true,
},
'@fortawesome/free-brands-svg-icons': {
transform: '@fortawesome/free-brands-svg-icons/${member}',
skipDefaultConversion: true,
},
},
],
//'@babel/plugin-proposal-object-rest-spread',
//'@babel/plugin-syntax-dynamic-import',
//'@vue/cli-plugin-babel/preset',
],
};