forked from facebook/metro
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update terser to v5 in
metro-minify-terser
(facebook#606)
Summary: **Summary** Update terser to the latest version that supports more modern js syntax like optional chaining. The main breaking change in v5 is that minify is now async. To support this I also needed to add async minifier support in metro-transform-worker. **Test plan** - Run tests - Test building my app bundle with minifier terser and untransformed optional chaining Pull Request resolved: facebook#606 Reviewed By: feedthejim Differential Revision: D24883529 Pulled By: rh389 fbshipit-source-id: c9ed893535337ecc1ce16e433e3d689c2037be0a
- Loading branch information
1 parent
62fbf39
commit 50aaa1a
Showing
4 changed files
with
37 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"terser": "^4.6.3" | ||
"terser": "^5.10.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters