Skip to content

Instantly share code, notes, and snippets.

@JBreit
Created December 2, 2020 02:37
Show Gist options
  • Save JBreit/e4cb10a3bd5a4b1bb5826fce3bd36d83 to your computer and use it in GitHub Desktop.
Save JBreit/e4cb10a3bd5a4b1bb5826fce3bd36d83 to your computer and use it in GitHub Desktop.
Babel Configuration
{
"presets": [
["@babel/preset-env", {
"modules": false,
"useBuiltIns": "usage",
"targets": {
"esmodules": true
}
}],
"@babel/preset-modules",
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-syntax-dynamic-import",
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-transform-template-literals",
"@babel/plugin-transform-spread",
["module-resolver", {
"root": ["./"],
"alias": {
"application": "./src/application",
"config": "./config",
"domain": "./src/domain",
"infrastructure": "./src/infrastructure",
"interface": "./src/interface",
"src": "./src",
"test": "./test"
}
}]
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment