-
Notifications
You must be signed in to change notification settings - Fork 12k
feat(@ngtools/webpack): add support for traceResolution
#12286
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
Conversation
traceResolution
now prints module resolutionstraceResolution
now prints module resolutions
@@ -435,6 +435,10 @@ export class WebpackCompilerHost implements ts.CompilerHost { | |||
return this.readFile(fileName); | |||
} | |||
} | |||
|
|||
trace(message: string) { | |||
console.log(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should use console.log
for this, but not sure what else we should use. The webpack compilation only allows for warnings and errors, and they show only at the end of the compilation.
@clydin WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a side note, I don't think you'd want to display the traceResolutions
all at the very end, as this is quite verbose. I think it is quite useful to see that output when a module is being resolved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the original issue I thought this was a bug, but seeing the changes needed I think it's a feature since it changes the output and adds support for something that was not there before.
Can you change the scope please?
@filipesilva updated scope as requested. Re the |
traceResolution
now prints module resolutionstraceResolution
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Closes #8676