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

usage-pure has incorrect optimization logic #166

Open
zloirock opened this issue Jun 15, 2023 · 4 comments · Fixed by #198
Open

usage-pure has incorrect optimization logic #166

zloirock opened this issue Jun 15, 2023 · 4 comments · Fixed by #198
Labels
bug Something isn't working

Comments

@zloirock
Copy link
Member

The problem is described here.

@zloirock zloirock added the bug Something isn't working label Jun 17, 2023
@yanni4night
Copy link

It seems that a lot of features are ignored under usage-pure mode.

Promise.allSettled
Promise.any
URLSearchParams...

@zloirock
Copy link
Member Author

zloirock commented Jan 25, 2024

#198 fixes only a case for static methods. However, here also a case of prototype methods, by the link:

new URLSearchParams().has(a, b);

should be transpiled for support 2 arguments in .has method.

However, #198 fixes #105.

@zloirock zloirock reopened this Jan 25, 2024
@liuxingbaoyu
Copy link
Member

liuxingbaoyu commented Jan 26, 2024

@zloirock
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants