This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.js
45 lines (41 loc) · 1.83 KB
/
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
42
43
44
45
/*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
function loose(plugin) {
return [plugin, { loose: true }];
}
module.exports = {
plugins: [
// Non standard features
require('babel-plugin-transform-strict-mode'),
require('babel-plugin-transform-class-properties'),
require('babel-plugin-transform-object-rest-spread'),
// ES2015
loose(require('babel-plugin-transform-es2015-template-literals')),
require('babel-plugin-transform-es2015-literals'),
require('babel-plugin-transform-es2015-function-name'),
require('babel-plugin-transform-es2015-arrow-functions'),
require('babel-plugin-transform-es2015-block-scoped-functions'),
loose(require('babel-plugin-transform-es2015-classes')),
require('babel-plugin-transform-es2015-object-super'),
require('babel-plugin-transform-es2015-shorthand-properties'),
require('babel-plugin-transform-es2015-duplicate-keys'),
loose(require('babel-plugin-transform-es2015-computed-properties')),
loose(require('babel-plugin-transform-es2015-for-of')),
require('babel-plugin-transform-es2015-sticky-regex'),
require('babel-plugin-transform-es2015-unicode-regex'),
require('babel-plugin-check-es2015-constants'),
loose(require('babel-plugin-transform-es2015-spread')),
require('babel-plugin-transform-es2015-parameters'),
loose(require('babel-plugin-transform-es2015-destructuring')),
require('babel-plugin-transform-es2015-block-scoping'),
require('babel-plugin-transform-es2015-typeof-symbol'),
loose(require('babel-plugin-transform-es2015-modules-commonjs')),
// React
require('babel-plugin-transform-react-jsx'),
require('babel-plugin-transform-flow-strip-types'),
require('babel-plugin-syntax-flow'),
require('babel-plugin-syntax-jsx'),
require('babel-plugin-transform-react-display-name')
]
};