forked from lostfictions/peerio-icebear
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
27 lines (27 loc) · 971 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
module.exports = function(api) {
api.cache.never();
return {
compact: false,
presets: ['@babel/preset-typescript'],
plugins: [
['@babel/plugin-proposal-decorators', { legacy: true }],
['@babel/plugin-proposal-class-properties', { loose: true }],
[
'@babel/plugin-proposal-object-rest-spread',
{ useBuiltIns: true }
],
// root-import is used in tests! we might want to ensure that it's
// not used elsewhere (or just colocate our tests and get rid of the
// need for this plugin)
['babel-plugin-root-import', { rootPathSuffix: 'src' }],
'@babel/plugin-transform-modules-commonjs',
[
'@babel/transform-async-to-generator',
{
module: 'bluebird',
method: 'coroutine'
}
]
]
};
};