-
-
Notifications
You must be signed in to change notification settings - Fork 359
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: add config values to hash salt #988
Conversation
3 similar comments
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.
Please hold off on any changes related to potentially disabling cache based on instrument
or instrumenter
for now.
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.
Looks good to me, thanks for contributing!
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.
@bcoe @coreyfarrell it would be cool if all the issues @taye mentioned could be closed in the merge commit but I'll leave that judgement call to you
I think #522 is the only one this should close. The other tickets are either unrelated or of undetermined cause. |
This PR adds the instrumenter-related config options to the salt of the cache hash. This fixes a bug where code that has been cached without instrumentation or source maps is incorrectly reused after the options are later enabled, leading to missing instrumentation. This problem is more likely to come up in projects using
babel-plugin-istanbul
which recommends setting thesourceMap
andinstrument
options tofalse
.Closes #552 and probably also #822 #822 #974 #980
Thank you to everyone maintaining and contributing to this project ❤️