Created
May 9, 2020 09:56
-
-
Save agcty/e30f25ddb7643eef108a8e0595c5c69b to your computer and use it in GitHub Desktop.
Babel rc for absolute imports next.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"presets": ["next/babel"], | |
"plugins": [ | |
[ | |
"module-resolver", | |
{ | |
"root": ["./"], | |
"alias": { | |
"@components": "./src/components", | |
"@api": "./src/api", | |
"@models": "./src/models", | |
"@screens": "./src/screens", | |
"@hooks": "./src/hooks", | |
"@services": "./src/services", | |
"@constants": "./src/constants", | |
"@context": "./src/context", | |
"@queries": "./src/queries", | |
"@data": "./src/data", | |
"@typeDefs": "./src/types", | |
"@generated": "./src/generated", | |
"@utils": "./src/utils", | |
"@public": "./public" | |
} | |
} | |
] | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment