My website built with React and Gatsby.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
dwysokinski.me/.babelrc

47 lines
1.1 KiB

{
"presets": ["babel-preset-gatsby"],
"plugins": [
[
"module-resolver",
{
"@": ["./src"],
"alias": {
"@components": "./src/components",
"@config": "./src/config",
"@features": "./src/features",
"@images": "./src/images",
"@utils": "./src/utils"
}
}
],
[
"babel-plugin-transform-imports",
{
"@material-ui/core": {
"transform": "@material-ui/core/${member}",
"preventFullImport": true
},
"@material-ui/lab": {
"transform": "@material-ui/lab/${member}",
"preventFullImport": true
},
"@material-ui/icons": {
"transform": "@material-ui/icons/${member}",
"preventFullImport": true
},
"lodash": {
"transform": "lodash/${member}",
"preventFullImport": true
},
"date-fns": {
"transform": "date-fns/${member}",
"preventFullImport": true
},
"validator": {
"transform": "validator/lib/${member}",
"preventFullImport": true
}
}
]
]
}