Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update minifier.js to remove server and development code
A very simple change inspired by https://github.com/ssrwpo/uglifyjs2 to remove server (`Meteor.isServer`) and development code (`Meteor.isDevelopment`) easily (and speeds up client-side execution by removing `Meteor.isClient` and `Meteor.isProduction`) We do this by search-replacing first to get simple var names (UGLIFYJS_FALSE and UGLIFYJS_TRUE) for `terser` to replace during conditional compilation Notes: 1. In addition to reducing JS load, removing server-side code is desirable for security purposes (and protecting server-side code as well) 2. Tested in production and works great
- Loading branch information
9fffeac
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to mention that we set ‘unused’ to true