-
Notifications
You must be signed in to change notification settings - Fork 26.2k
fix(compiler): make .ngsummary.json
files idempotent
#21448
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
You can preview 3b2412c at https://pr21448-3b2412c.ngbuilds.io/. |
@@ -382,7 +388,8 @@ export class StaticSymbolResolver { | |||
// .ts or .d.ts, append `.ts'. Also, if it is in `node_modules`, trim the `node_module` | |||
// location as it is not important to finding the file. | |||
_originalFileMemo = | |||
topLevelPath.replace(/((\.ts)|(\.d\.ts)|)$/, '.ts').replace(/^.*node_modules[/\\]/, ''); | |||
this.host.getOutputName(topLevelPath.replace(/((\.ts)|(\.d\.ts)|)$/, '.ts') | |||
.replace(/^.*node_modules[/\\]/, '')); |
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.
What about a file in a directory my_node_modules
?
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.
That is not unique to the change. We should consider fixing this in a separate PR.
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. |
Fixes: #21432
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #21432
Full path names are written to the
.ngsummary.json
file.What is the new behavior?
Relative path names are written to the
.ngsummary.json
file.Does this PR introduce a breaking change?