-
Notifications
You must be signed in to change notification settings - Fork 12
/
babel.bot.config.js
47 lines (47 loc) · 1.53 KB
/
babel.bot.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
45
46
47
module.exports = {
'presets': [
'@babel/preset-typescript',
['@babel/preset-env', {
'targets': {
'node': 'current',
},
}]
],
'plugins': [
[
'module-resolver',
{
extensions: ['.js', '.jsx', '.ts', '.tsx'],
root: ['./src'],
alias: {
"swap.app": "./src/core/swap.app/",
"swap.app/*": "./src/core/swap.app/*",
"swap.auth": "./src/core/swap.auth/",
"swap.auth/*": "./src/core/swap.auth/*",
"swap.flows": "./src/core/swap.flows/",
"swap.flows/*": "./src/core/swap.flows/*",
"swap.orders": "./src/core/swap.orders/",
"swap.orders/*": "./src/core/swap.orders/*",
"swap.room": "./src/core/swap.room/",
"swap.room/*": "./src/core/swap.room/*",
"swap.swap": "./src/core/swap.swap/",
"swap.swap/*": "./src/core/swap.swap/*",
"swap.swaps": "./src/core/swap.swaps/",
"swap.swaps/*": "./src/core/swap.swaps/*",
"simple.swap.core": "./src/core/simple/src/",
"common": "./src/common/",
"common/*": "./src/common/*"
},
},
],
'add-module-exports',
['@babel/plugin-proposal-decorators', { 'legacy': true }],
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-export-default-from',
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-transform-destructuring',
],
sourceType: 'unambiguous'
}