-
-
Notifications
You must be signed in to change notification settings - Fork 432
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
Fix: Increase the instance version when new root files are found #955
Conversation
This fixes the problem by correctly allowing files not covered by tsconfig.json. There is no conflict with any other option and ts-loader behaves as it used to. |
Heya, thanks for this! It looks like this tweak may be breaking the Essentially with the change this code is never executed: Interestingly, actually importing ts from Can you confirm why the meaningful error message code isn't being executed now please? I've a feeling it may be valid behaviour that this is the case but I'd like to know for sure. If there's good reasons to go with this behaviour then we should think about removing code around the meaningful error message and it's associated comparison test: But before we do that, let's be sure this is intentional. Thanks! PS more information here:
cc @aelawson |
Ok, this is interesting. It seems very similar to the bug I was trying to fix! Only that in my situation, instead of an explicit I guess I can normalize the path to remove symlinks and check for node_modules as well. |
f53003b
to
1c3464f
Compare
It doesn't look like your change has resolved the issue? Was it intended to? I think my original questions still stand; is this something that we should be concerned about? |
That is strange! It works for me locally. I'll try to find out more.
I think we should. My changes allow you to compile files that are under node_modules even if |
3a8e05a
to
360a6ff
Compare
Silly mistake. Wrong comparison... ! It worked locally because it updated the snapshot 😄 I updated the PR. Should we also check for |
Yeah - I think that's an edge case. I'm happy with how things are now I think. Do you want to update the |
I'm afraid we already have |
416b454
to
f14e31c
Compare
f14e31c
to
9145448
Compare
Release going out now - thanks for your help! https://github.com/TypeStrong/ts-loader/releases/tag/v6.0.4 |
Awesome. Thank you @johnnyreilly and @andrewbranch for your help, responsiveness and the nice test suite 🙂 |
This is a minimal fix for #943.
When a new root file is processed, ensure that the instance version is increased.
It is an alternative to the bigger PR #945.