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:
parent
0b36211a1f
commit
653098d397
1 changed files with 2 additions and 2 deletions
|
@ -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 (
|
||||
|
|
Loading…
Reference in a new issue