-
Notifications
You must be signed in to change notification settings - Fork 27.4k
chore(*): silence ng-closure-runner warnings during grunt minall
#15439
Conversation
* @param {*} error - The error object that will be returned. | ||
* @returns {*} - The passed in error. | ||
*/ | ||
function noMinErr(ignoredCode, ignoredTemplate, err) { |
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 am not thrilled about having to pass the first two string arguments.
Alternatively, we could teach ng-closure-runner
to ignore noMinErr
instances (i.e. not treat them as minErr
instances, but don't log a warning either).
d28ec11
to
b425246
Compare
For reference: Before
After
|
Did you check whether this ends up creating |
No 😕 |
AFAICT, it does not. It does create a |
That is true but you now get this in the build:
|
Irony 😒 |
Given that we are then creating workarounds for workarounds, I start to feel that it would be better to fix the ng-closure-runner tool instead. It could simply be a comment flag (or other device) to tell minerr to ignore that error throw. |
As discussed, it doesn't make sense to fix it in |
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Chore/Refactor.
What is the current behavior? (You can also link to an open issue here)
During the
grunt minall
task,ng-closure-runner
logs some warnings due to:minErr
instances.@this
annotation in a non-JSDoc comment.What is the new behavior (if this is a feature change)?
No warnings during
grunt minall
.Does this PR introduce a breaking change?
No.
Please check if the PR fulfills these requirements
Docs have been added / updated (for bug fixes / features)