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

Update browserify wrapper handling #311

Merged
merged 2 commits into from
Mar 14, 2019
Merged

Update browserify wrapper handling #311

merged 2 commits into from
Mar 14, 2019

Conversation

guybedford
Copy link
Contributor

This includes the update to the asset relocator loader to improve the Browserify wrapper handling (vercel/webpack-asset-relocator-loader@2d0e7c7).

Specifically we extend the browserify wrapper detection to be able to detect the uglification of the wrapper, as well as ensuring that the require detection is converted to apply to __non_webpack_require__.

Fixes #299.

@guybedford guybedford requested a review from styfle as a code owner March 14, 2019 19:36
@codecov-io
Copy link

codecov-io commented Mar 14, 2019

Codecov Report

Merging #311 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #311   +/-   ##
=======================================
  Coverage   68.37%   68.37%           
=======================================
  Files          12       12           
  Lines         370      370           
=======================================
  Hits          253      253           
  Misses        117      117

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 17eb4d8...24ff117. Read the comment docs.

@styfle
Copy link
Member

styfle commented Mar 14, 2019

@guybedford Thanks! Can you add an integration test for tiny-json-http to prove that this fixes the bug?

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

Let's make sure this has a integration test for tiny-json-http so we don't regress

@guybedford
Copy link
Contributor Author

guybedford commented Mar 14, 2019 via email

@rauchg
Copy link
Member

rauchg commented Mar 14, 2019

+1 on integration test

@guybedford
Copy link
Contributor Author

Sure, I've added an integration test here.

Copy link
Member

@styfle styfle left a comment

Choose a reason for hiding this comment

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

🔥

@styfle styfle merged commit c94ee01 into master Mar 14, 2019
@styfle styfle deleted the browserify-wrapper branch March 14, 2019 21:31
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.

4 participants