-
-
Notifications
You must be signed in to change notification settings - Fork 433
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
Errors/warnings added by ts-loader do not respect webpack API #1199
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The problem is still present, no reason to close this. |
Would you like to work on this? |
Yes, I would like to. I hope to find some time to do a PR in the coming days. |
Thanks for contributing! Should be released in the next 20 mins https://github.com/TypeStrong/ts-loader/releases/tag/v8.0.17 |
I'm processing webpack errors/warnings in the compilation results.
Expected Behaviour
The errors and warnings reported by ts-loader through webpack should implement the
WebpackError
interface.Starting from webpack 5 the interface is part of webpack's official typings.
Actual Behaviour
Instead of including the
loc
property with start/end positions of the error, the object added by ts-loader includes alocation
property with just the starting position. This is easily seen in the webpackstats
object produced by the compilation.Probably as a consequence of this, when I transform the stats into JSON, there is no location information for the errors.
The text was updated successfully, but these errors were encountered: