-
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
Fix import warning for webpack 5 #5933
Conversation
Webpack 5 emits a warning when importing named exports from json files: ``` "WARNING in ../../node_modules/prebid.js/src/secureCreatives.js 15:16-30 Should not import the named export 'EVENTS'.'BID_WON' (imported as 'EVENTS') from default-exporting module (only default export is available soon)" ```
Fixes #5909 |
@gpoitch I can't get this to pass Circle CI, but the failure doesn't look exactly related to this change, can you take a look? |
@GLStephen looks like a timeout. Restart the build/merge master? |
@gpoitch yes, please do a merge with master and let's try it again |
No dice. Master itself is currently failing but the errors are different. Seems like a testing issue. Thanks for opening the PR for me. Just realized my ad blocker was preventing me from doing anything in this repo. |
Do we know if the the testing issues have been dealt with? I'd like to see this get approved 👍 |
passing now |
Webpack 5 emits a warning when importing named exports from json files: ``` "WARNING in ../../node_modules/prebid.js/src/secureCreatives.js 15:16-30 Should not import the named export 'EVENTS'.'BID_WON' (imported as 'EVENTS') from default-exporting module (only default export is available soon)" ``` Co-authored-by: Garth Poitras <411908+gpoitch@users.noreply.github.com> Co-authored-by: gpoitch <garth22@gmail.com>
This PR created on behalf of @gpoitch for #5909
Fixes #5909
Webpack 5 emits a warning when importing named exports from json files: