Skip to content
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

[core-http] Fix broken browser bundle due to Rollup config #5383

Merged
merged 1 commit into from
Oct 4, 2019

Conversation

daviwil
Copy link
Contributor

@daviwil daviwil commented Oct 3, 2019

This change fixes core-http's browser bundle which started picking up Node-specific code after PR #5207. The issue was actually caused by a combination of core-tracing's browser configuration and core-http's Rollup nodeResolve configuration, meaning that the wrong file was being pulled from core-tracing when core-http's browser bundle was created.

The fix is to correct the browser path mapping for core-tracing and remove the main entrypoint from core-http's nodeResolve configuration.

@daviwil daviwil requested review from xirzec and chradek October 3, 2019 23:26
@daviwil daviwil requested a review from ramya-rao-a as a code owner October 3, 2019 23:26
Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing! 👍

Copy link
Contributor

@chradek chradek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@daviwil
Copy link
Contributor Author

daviwil commented Oct 3, 2019

core-http browser tests appear to be passing now:

TOTAL: 347 SUCCESS
10 of 24: [@azure/core-http] completed successfully in 35.75 seconds

https://dev.azure.com/azure-sdk/public/_build/results?buildId=124313&view=logs&j=23e2e6de-b7c3-5918-7121-f16b46172e49&t=7bd26578-88b4-5baa-f548-7813777930ca&l=1209

@daviwil daviwil merged commit 2b784b8 into Azure:master Oct 4, 2019
@daviwil daviwil deleted the fix-core-http-browser-bundle branch October 4, 2019 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants