Skip to content

RFC - New src folder structure "module oriented" #183

Answered by Vadorequest
Vadorequest asked this question in Ideas
Discussion options

You must be logged in to vote

Work has started on #264

@sovattha @samuelcastro Could you review and give your feedback? Does it look like what you expected?

I'm also considering using @ when loading paths. E.g: import Button from '@/components/button'

https://nextjs.org/docs/advanced-features/module-path-aliases

It would be more resilient to moving files around, by not creating conflicts within the file itself. And it'd avoid breaking paths when moving files around (as it happened to me a lot today, had to fix those manually afterwards)

I've never used module path aliasing, do you think it's a good idea to integrate it now? Would it make the upgrade smoother for you?

Replies: 6 comments 61 replies

Comment options

You must be logged in to vote
2 replies
@sovattha
Comment options

@Vadorequest
Comment options

Comment options

You must be logged in to vote
7 replies
@Vadorequest
Comment options

@Vadorequest
Comment options

@samuelcastro
Comment options

@Vadorequest
Comment options

@samuelcastro
Comment options

Comment options

You must be logged in to vote
10 replies
@Vadorequest
Comment options

@Vadorequest
Comment options

@sovattha
Comment options

@Vadorequest
Comment options

@samuelcastro
Comment options

Answer selected by Vadorequest
Comment options

You must be logged in to vote
29 replies
@sovattha
Comment options

@Vadorequest
Comment options

@sovattha
Comment options

@Vadorequest
Comment options

@samuelcastro
Comment options

Comment options

You must be logged in to vote
13 replies
@samuelcastro
Comment options

@Vadorequest
Comment options

@Vadorequest
Comment options

@Vadorequest
Comment options

@samuelcastro
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants