-
-
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
Generate declaration files for js files if allowJs is set to true #1270
Conversation
… allowJs is set to true.
Thanks for the PR! It looks like you've a failing test:
But on Linux you're getting this:
|
Do you have an idea what causes this? Seems to be unrelated of my change and an issue with the test itself, especially as it is OS dependent. |
The nature of the difference between the two output is This may be surfacing an actual issue. If memory serves there have been historic issues with paths and declaration output. See: cc @JonWallsten |
I'm a Windows user! |
What do you get if you generate the test output in the devcontainer? |
I'll have a look today. Since the difference is between systems I guess the relative path is the culprit? |
Seems plausible - I wonder if the |
My initial thought was that TS handles js files differently, because it already works with TS files. But since it works on one system and not the other I was also thinking about that fix we did! We should probably try that! |
Try all the things! |
I think this was done prior to the webpack 5 port. Could be worth regenerating comparison test output and see if the issue is resolved by the webpack 5 work |
Dang, this should be merged. Whatever happened with the failing test? |
I'm not sure - it all went quiet. If you'd like to pick this up and work on it I'll happily look at a PR! |
Sorry, I moved on from the project I needed this for and then got very busy. For this PR, the neccessary fix is in |
Awesome - I'm happy to assist with the test if someone else wants to pick this up |
Awesome, thanks! |
Fixes #1260.