Skip to content

Instantly share code, notes, and snippets.

@jamesreggio
Created February 28, 2018 16:08
Show Gist options
  • Save jamesreggio/7c87f473388d7aef7b1758b9fc90fde0 to your computer and use it in GitHub Desktop.
Save jamesreggio/7c87f473388d7aef7b1758b9fc90fde0 to your computer and use it in GitHub Desktop.
Patch for [email protected] to support Babel 7
patch-package
--- a/node_modules/metro-minify-uglify/src/minifier.js
+++ b/node_modules/metro-minify-uglify/src/minifier.js
@@ -34,7 +34,7 @@ filename)
function minify(inputCode, inputMap) {
const result = uglify.minify(inputCode, {
- mangle: { toplevel: true },
+ mangle: { toplevel: true, safari10: true },
output: {
ascii_only: true,
quote_style: 3,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment