the sentry webpack plugin always updates compiled js by adding a sentry debug and release id. This means that the file changes every time we merge into this branch (and then deploy), which duplicates deployments and means our users are forced to re-download JS that hasn't actually cached.
So, we now:
run webpack
strip the sentry stuff from the newly compiled code AND a copy in git at HEAD
diff those two versions
only commit the compiled javascript if the stripped versions differ
the sentry webpack plugin always updates compiled js by adding a sentry debug and release id. This means that the file changes every time we merge into this branch (and then deploy), which duplicates deployments and means our users are forced to re-download JS that hasn't actually cached.
So, we now: