-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathbabel.config.js
More file actions
33 lines (32 loc) · 887 Bytes
/
Copy pathbabel.config.js
File metadata and controls
33 lines (32 loc) · 887 Bytes
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
const config = {
presets: [
["@babel/preset-env", {
"targets": {
// Modern browsers that support WebGL, async/await, and ES modules
"browsers": ["> 0.5%", "not dead", "not ie 11"]
}
}],
],
plugins: [
'babel-plugin-syntax-jsx',
["babel-plugin-inferno", {"imports": true}],
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-classes"
],
env: {
test: {
presets: [
["@babel/preset-env", {
targets: {
node: "current",
},
}],
],
plugins: [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-transform-classes",
],
},
},
};
module.exports = config;