Unverified Commit 653098d3 authored by Sébastien Vanvelthem's avatar Sébastien Vanvelthem Committed by GitHub

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: 's avatarJoe Haddad <timer150@gmail.com>

* Update docs/advanced-features/module-path-aliases.md
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
Co-authored-by: 's avatarTim Neutkens <tim@timneutkens.nl>
Co-authored-by: 's avatarJoe Haddad <timer150@gmail.com>
parent 0b36211a
......@@ -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 (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment