Use @/ to show module alias instead of @ prefixed (#12600)

* docs: controversial '@' prefix aliases should not be used

* Update docs/advanced-features/module-path-aliases.md

Co-authored-by: Joe Haddad <timer150@gmail.com>

* Update docs/advanced-features/module-path-aliases.md

Co-authored-by: Joe Haddad <timer150@gmail.com>

Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
This commit is contained in:
Sébastien Vanvelthem 2020-05-11 13:52:59 +02:00 committed by GitHub
parent 0b36211a1f
commit 653098d397
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ An example of this configuration:
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@components/*": ["components/*"]
"@/components/*": ["components/*"]
}
}
}
@ -73,7 +73,7 @@ export default function Button() {
```jsx
// pages/index.js
import Button from '@components/button'
import Button from '@/components/button'
export default function HomePage() {
return (