forked from graphql/graphiql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.babelrc.js
41 lines (40 loc) · 846 Bytes
/
.babelrc.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
const testConfig = {
presets: [
[
'@babel/preset-env',
{
// temporarily just in babel config until we decide what to do with css vendor prefixes
targets: {
node: 'current',
},
},
],
'@babel/react',
'@babel/preset-flow',
]
}
module.exports = {
presets: [
[
'@babel/preset-env',
{
// temporarily just in babel config until we decide what to do with css vendor prefixes
targets: {
browsers: [
'ie 9',
'ios 9',
'last 2 chrome versions',
'last 2 edge versions',
'last 2 firefox versions',
],
},
},
],
'@babel/react',
'@babel/preset-flow',
],
plugins: ['@babel/plugin-proposal-class-properties'],
env: {
test: testConfig
},
};