-
Notifications
You must be signed in to change notification settings - Fork 649
Allow for async minifiers #754
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
Conversation
Terser v5 is async, so if we want to upgrade to support the latest syntax we need this.
#606 is related - but this doesn't change the terser package - I'll send another PR for that. That PR was never merged because of a need for using the transform worker sync, but I believe that is obsolete as there is already a bunch of await clauses in that file |
@sota000 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@sota000 is there any hope of merging this? |
@rockwotj this requires a few modifications to the way we use metro internally, but it’s in the pipeline |
Thanks so much! |
Summary: **Summary** Terser v5 is async, so if we want to upgrade to support the latest syntax we need this. **Test plan** Existing unit tests - this only adds an await clause, which is safe to do to non-promises, so it shouldn't break anything. Pull Request resolved: facebook#754 Reviewed By: motiz88 Differential Revision: D33486073 Pulled By: rh389 fbshipit-source-id: 1f6be79741144960803d018d48a51a367665708f
Summary: **Summary** Terser v5 is async, so if we want to upgrade to support the latest syntax we need this. **Test plan** Existing unit tests - this only adds an await clause, which is safe to do to non-promises, so it shouldn't break anything. Pull Request resolved: facebook#754 Reviewed By: motiz88 Differential Revision: D33486073 Pulled By: rh389 fbshipit-source-id: 1f6be79741144960803d018d48a51a367665708f
Summary: **Summary** Terser v5 is async, so if we want to upgrade to support the latest syntax we need this. **Test plan** Existing unit tests - this only adds an await clause, which is safe to do to non-promises, so it shouldn't break anything. Pull Request resolved: facebook#754 Reviewed By: motiz88 Differential Revision: D33486073 Pulled By: rh389 fbshipit-source-id: 1f6be79741144960803d018d48a51a367665708f
Summary
Terser v5 is async, so if we want to upgrade to support the latest syntax we need this.
Test plan
Existing unit tests - this only adds an await clause, which is safe to do to non-promises, so it shouldn't break anything.