-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.babelrc.js
More file actions
21 lines (21 loc) · 654 Bytes
/
Copy path.babelrc.js
File metadata and controls
21 lines (21 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports = {
'presets': [
['@babel/preset-env', { useBuiltIns: 'usage', corejs: 3 }],
'@babel/preset-react'
],
'plugins': [
// proposals
['@babel/plugin-proposal-optional-chaining', { 'loose': false }],
['@babel/plugin-proposal-decorators', { 'legacy': true }],
['@babel/plugin-proposal-class-properties', { 'loose': true }],
// transforms
['transform-imports', {
// example usage below
// potentially use for internal libs too, like `import {} from './fields'`
'react-bootstrap': {
'transform': 'react-bootstrap/lib/${member}',
'preventFullImport': true
}
}]
]
}