Closed QuentinRoy closed 3 years ago
Yep, this is intended.
From the doc: "the shared dependencies are always placed in a shared/ folder which is located beside the highest dependent file (or the shared parent if dependent files are nested)."
Do you have an idea of a better way to place this kind of file?
In this case, I believe the Area
folder should be in the same directory as Area.js
for example, i.e. shared
. How can I know where it is otherwise? Nothing in Area.js
tells me ParticipantSetup
depends on it, and many other files actually depends on Area.js
, but the Area
folder isn’t there.
Ahh yes, you're right. I misunderstood what was your issue in the first place.
The Area
folder should definitely be in shared
beside Area.js
.
Great! Thanks for this great project!
When a shared file has dependencies, those remain near the first use of these shared file. This is an example from a real project:
Notice how the dependencies of
Area
andCheckBoxWithLabel
are not quite near the file that depends on them? It makes it quite difficult to find them. Is this on purpose?