-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Bug fix: support webpack 5 in ts-loader #1439
Conversation
Error when running ts-loader with webpack 5 : "times is not iterable"
Thanks! Just kicked off the tests |
The build is failing at the moment? |
I notice this approach depends upon |
@vankop friendly ping, I think it is regression |
hm.. maybe some watch bug.. could you create a small reproducible repo? From code this could happen ( |
This is actually a question about types; we're getting this compilation error:
It suggests that there is no available |
yes, |
Okay cool. Is there a public API that can be used? Is there an |
Just looking at the code and I can see there's a |
@einatbar would you like to update your pr to use @alexander-akait / @vankop if you have thoughts then please do share! |
I think |
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 think we should use snapshot API here, there is small example how we do it in copy plugin https://github.com/webpack-contrib/copy-webpack-plugin/blob/master/src/index.js#L569
If I understand correctly this code snippet does:
So you can use 2 api methods createSnapshot (example above) and on watch callback check that snapshot is valid So I think you can use and it still unclear to me why |
@vankop |
Would it be enough to guard against |
@johnnyreilly looks like it's working as well if I just guard against compiler.fileTimestamps |
Cool - fancy updating the PR? |
@johnnyreilly sure, on it |
Awesome, do you want to update the |
@einatbar , thank you very much :) |
@johnnyreilly Thank you! :) |
My pleasure @einatbar ! |
Fixes Error when running ts-loader with webpack 5 : "times is not iterable"
closes #1438