forked from ManageIQ/manageiq-ui-classic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.babelrc.js
27 lines (26 loc) · 840 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
// 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').default,
{
targets: {
browsers: [
"> 3%",
"last 2 versions",
"Firefox ESR",
],
},
},
],
require('@babel/preset-react').default,
],
plugins: [
require('@babel/plugin-proposal-class-properties').default,
require('@babel/plugin-proposal-export-default-from').default,
require('@babel/plugin-proposal-export-namespace-from').default,
require('@babel/plugin-proposal-object-rest-spread').default,
require('@babel/plugin-transform-object-assign').default,
],
};