Skip to content

Instantly share code, notes, and snippets.

@maddrag0n
Created February 23, 2018 23:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maddrag0n/3d054c8eb261627af4b95092c52689f1 to your computer and use it in GitHub Desktop.
Save maddrag0n/3d054c8eb261627af4b95092c52689f1 to your computer and use it in GitHub Desktop.
babel config for ReactJS
{
"presets": [
"stage-0",
"env",
"react",
"flow"
],
"plugins": [
"add-module-exports",
"lodash",
"transform-runtime",
"transform-class-properties",
"transform-object-rest-spread",
[
"module-resolver", {
"root": [ "./" ],
"alias": {
"services": "./src/app/services",
"tools": "./src/tools",
"components": "./src/app/components",
"containers": "./src/app/containers",
"styles": "./src/app/styles",
"config": "./src/config",
"server": "./src/server"
}
}
]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment