forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc.js
28 lines (27 loc) · 775 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
// note that every package mentioned here has to be explicitly required (require/import, not a string name)
// if not, this fails if babel runs in a plugin repo before it manages to load them
module.exports = {
presets: [
[
require('babel-preset-env'),
{
targets: {
browsers: [
"> 1%",
"last 2 versions",
"Firefox ESR",
"IE 11",
],
},
},
],
require('babel-preset-react'),
require('babel-preset-es2015'),
],
plugins: [
require('babel-plugin-transform-class-properties'),
require('babel-plugin-transform-export-extensions'),
require('babel-plugin-transform-object-rest-spread'),
require('babel-plugin-transform-object-assign'),
],
};