Skip to content

Commit

Permalink
Merge pull request alan2207#182 from julianty/patch-1
Browse files Browse the repository at this point in the history
Update project-structure.md
  • Loading branch information
alan2207 authored Jun 19, 2024
2 parents dfd2950 + 5a4ecbf commit 7ca3bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/project-structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ NOTE: You don't need all of these folders for every feature. Only include the on

In the past, it was recommended to use barrel files to export all the files from a feature. However, it can cause issues for Vite to do tree shaking and can lead to performance issues. Therefore, it is recommended to import the files directly.

It might be not be a good idea to import across the features. Instead, compose different features at the application level. This way, you can ensure that each feature is independent which makes the codebase less convoluted.
It might not be a good idea to import across the features. Instead, compose different features at the application level. This way, you can ensure that each feature is independent which makes the codebase less convoluted.

To forbid cross-feature imports, you can use ESLint:

Expand Down

0 comments on commit 7ca3bb8

Please sign in to comment.