Skip to content
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.

shortwave/metro-minify-terser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metro Minify Terser

The latest version of metro supports terser v5 so please don't use this

This is a minifier for Metro (the React Native build tool) that supports the terser v5 implementation. Sadly the v5 version of terser has an async API and metro only allows for sync minifiers, so this hacks a sync interface on top of terser by running it as a worker in another process.

Hopefully a PR to allow async minifiers to Metro will be merged and we can remove the hacks here.