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

Fix: JavaScript minimization bug #1199

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Fix: JavaScript minimization bug #1199

merged 1 commit into from
Aug 31, 2022

Conversation

krisbitney
Copy link
Contributor

@krisbitney krisbitney commented Aug 31, 2022

The client has a bug that prevents url resolvers from loading correctly after JavaScript minimization (aka "minification"). The bug can be circumvented by configuring weback to keep function names.

This PR fixes the issue so that webpack configuration is not necessary. It does so by removing the use of reflection from the client and uri resolvers. In particular, the client and uri resolvers were using X.name where X is the name of a uri resolver class.

I'm not sure how to write an automated test for this. I tested the fix using the Uniswap v3 front end. After linking the updated toolchain packages, the Uniswap v3 front end works without modifying the webpack configuration.

Closes #985.

Copy link
Contributor

@dOrgJelli dOrgJelli left a comment

Choose a reason for hiding this comment

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

👏

@dOrgJelli dOrgJelli merged commit 857e908 into origin-dev Aug 31, 2022
@dOrgJelli dOrgJelli deleted the fix-minification branch April 10, 2023 17:03
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.

2 participants