Skip to content

Instantly share code, notes, and snippets.

@avxkim
Created November 28, 2021 18:29
Show Gist options
  • Save avxkim/8513b1901c0128bffb9afca8eaf7a612 to your computer and use it in GitHub Desktop.
Save avxkim/8513b1901c0128bffb9afca8eaf7a612 to your computer and use it in GitHub Desktop.
tsconfig.json
"compilerOptions": {
"baseUrl": "./src",
"paths": {
"@app/*": ["app/*"],
"@views/*": ["app/views/*"],
"@components/*": ["app/components/*"],
"@store/*": ["app/store/*"],
"@services/*": ["app/services/*"]
},
// then you can import
import { stuff } from '@components/component';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment