maplelabs / maplelabs/FOSS-Hub-website
Add module path aliases
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
Right now, there are is no module path aliasing due to which relative imports are used:
`import xyz from "../../../components/XYZComponent"`
With module path aliasing, we can simplify the syntax to:
`import xyz from 'components/XYZComponent'`
Next.js supports it out of the box: https://nextjs.org/docs/advanced-features/module-path-aliases
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the repository's Next.js configuration and current relative imports against the linked module-path-alias guidance. Done means the proposed components/ alias works consistently and the website still builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nextjs, typescript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100