-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
require extensions in imports #4876
Conversation
@@ -638,7 +638,7 @@ export const spec = { | |||
bidObject.adserverTargeting = extPrebidTargeting; | |||
} | |||
|
|||
// try to get cache values from 'response.ext.prebid.cache' | |||
// try to get cache values from 'response.ext.prebid.cache.js' |
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.
is this change necessary?
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.
nope, that was an accidental catch by the regex replace
@@ -1,8 +1,7 @@ | |||
import 'mocha/mocha'; |
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.
Guessing this is an unused import
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 sure hope so, I can't imagine what it would be doing where it'd need to be included only for its side-effects... either way I removed it and the tests still passed so... good?
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, but please check the failing CI Job. |
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.
Couldn't find any glaring issues LGTM!
Tests working is a good sign and we can do some other verifications no other errors thrown in the console when loading the entire bundle.
Thanks Rich!
Type of change
Description of change
Explicitly require extensions on imports and validate with eslint plugin.
Other information
This should fix any issues with dependent projects including Prebid.js that don't have the default extensions as part of the module resolver as described in #4856