{
  "presets": ["babel-preset-gatsby"],
  "plugins": [
    [
      "module-resolver",
      {
        "@": ["./src"],
        "alias": {
          "@components": "./src/components",
          "@config": "./src/config",
          "@features": "./src/features",
          "@images": "./src/images",
          "@libs": "./src/libs",
          "@utils": "./src/utils"
        }
      }
    ],
    [
      "babel-plugin-transform-imports",
      {
        "@material-ui/core": {
          // Use "transform: '@material-ui/core/${member}'," if your bundler does not support ES modules
          "transform": "@material-ui/core/${member}",
          "preventFullImport": true
        },
        "@material-ui/lab": {
          // Use "transform: '@material-ui/lab/${member}'," if your bundler does not support ES modules
          "transform": "@material-ui/lab/${member}",
          "preventFullImport": true
        },
        "@material-ui/icons": {
          // Use "transform: '@material-ui/icons/${member}'," if your bundler does not support ES modules
          "transform": "@material-ui/icons/${member}",
          "preventFullImport": true
        },
        "lodash": {
          // Use "transform: 'lodash/${member}'," if your bundler does not support ES modules
          "transform": "lodash/${member}",
          "preventFullImport": true
        },
        "date-fns": {
          // Use "transform: 'date-fns/${member}'," if your bundler does not support ES modules
          "transform": "date-fns/${member}",
          "preventFullImport": true
        },
        "validator": {
          // Use "transform: 'validator/${member}'," if your bundler does not support ES modules
          "transform": "validator/lib/${member}",
          "preventFullImport": true
        }
      }
    ]
  ]
}
