Skip to content

Instantly share code, notes, and snippets.

@casr
Last active March 31, 2017 12:53
Show Gist options
  • Save casr/664cf9a2011b940436e1c59c2716f6d5 to your computer and use it in GitHub Desktop.
Save casr/664cf9a2011b940436e1c59c2716f6d5 to your computer and use it in GitHub Desktop.
Uglifyify bug
❯ npm install
❯ npm test

> @ test /Users/casr/Source/scratch/uglifyify-test
> for i in 0 1 2 3 4 5 6 7 8 9; do echo "require('react-dom')" | browserify - -g uglifyify | wc -c; done

  319901
  319901
  320050
  319926
  319366
  319777
  319777
  319777
  319777
  319926
{
"private": true,
"dependencies": {
"browserify": "^14.1.0",
"react": "^15.4.2",
"react-dom": "^15.4.2",
"uglifyify": "^3.0.4"
},
"scripts": {
"test": "for i in 0 1 2 3 4 5 6 7 8 9; do echo \"require('react-dom')\" | browserify - -g uglifyify | wc -c; done"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment