Skip to content

Fix: JavaScript minimization bug#1199

Merged
dOrgJelli merged 1 commit intoorigin-devfrom
fix-minification
Aug 31, 2022
Merged

Fix: JavaScript minimization bug#1199
dOrgJelli merged 1 commit intoorigin-devfrom
fix-minification

Conversation

@krisbitney
Copy link
Copy Markdown
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
Copy Markdown
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