-
-
Notifications
You must be signed in to change notification settings - Fork 661
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include module path in virtual file names #11852
Include module path in virtual file names #11852
Conversation
We could name these something like |
The |
Yes the package should be there too of course. Internally the naming doesn't really matter, the only part that's important is that the file key is unique. So a normal module path with the step and counter suffix would be fine too. |
|
RE dotpath to directory structure: Yes please. It will be nicer. I could replace dots with slashes on my dependency visualizer, but that would require special handling for |
1445c19
to
df5a27e
Compare
@Antriel when you have some free time, can you check if that new path works for you? |
Seems to work well, except for modules defined without any package, which end up without the project directory. The difference in those is that the last one has - C:\Users\peter\Dropbox\work\NextRealm\games\SnowFight\client\file_1_30
- C:\Users\peter\Dropbox\work\NextRealm\games\SnowFight\client\file_1_33
- C:\Users\peter\Dropbox\work\NextRealm\games\SnowFight\client\file_1_76
- C:\Users\peter\Dropbox\work\NextRealm\games\SnowFight\client\file_1_77
+ C:\SerApiUiApi0_1_30
+ C:\SerApiSelfLogicApi0_1_33
+ C:\SerApiManagerClientApi0_1_76
+ C:\Users\peter\Dropbox\work\NextRealm\games\SnowFight\client\reactor\SenderSerApiManagerClientApi00_1_77 |
Hmm. I suppose I should handle |
df5a27e
to
b908b5e
Compare
Yep, that fixed it. |
When using
-D dump-dependencies
, macro modules show up with their file names, but for macro generated modules that's unusable (they're all named/server/file_x_y
which doesn't help much).tbh I'm not sure this is the kind of fix we need here, but I also didn't want to break things relying on current
-D dump-dependencies
output.