forked from jitsi/jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbabel.config.js
29 lines (26 loc) · 912 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
// babel is used for jest
// FIXME make jest work with webpack if possible?
module.exports = {
env: {
test: {
plugins: [
// Stage 2
'@babel/plugin-proposal-export-default-from',
'@babel/plugin-proposal-export-namespace-from',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining',
// Stage 3
'@babel/plugin-syntax-dynamic-import',
[ '@babel/plugin-proposal-class-properties', { loose: false } ],
'@babel/plugin-proposal-json-strings',
// lib-jitsi-meet
'@babel/plugin-transform-flow-strip-types'
],
presets: [
'@babel/env',
'@babel/preset-flow',
'@babel/react'
]
}
}
};