forked from RedHatInsights/policies-ui-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
babel.config.js
26 lines (25 loc) · 808 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
require.extensions['.css'] = () => undefined;
module.exports = {
presets: [ '@babel/env', '@babel/react' ],
plugins: [
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-proposal-class-properties',
'lodash',
[
'transform-imports',
{
'@patternfly/react-icons': {
transform: (importName) =>
`@patternfly/react-icons/dist/js/icons/${importName
.split(/(?=[A-Z])/)
.join('-')
.toLowerCase()}`,
preventFullImport: true
}
},
'react-icons'
]
]
};