can't do this as a browserify transform, must be performed on the final build