As I was publishing the latest release and going through each change that made it's way into the release, I looked at this PR again - https://github.com/airbnb/Showkase/pull/341.
While this is useful for teams that are using Showkase with a release build, it's far more common to use Showkase as a "debug only" component browser. I think this change will actually cause all the previews to be retained since we are explicitly retaining the file that holds a reference to them. As a result, I'm reverting that PR and instead adding this information in the README in cases where you need to use Showkase in builds that have minification enabled.
As I was publishing the latest release and going through each change that made it's way into the release, I looked at this PR again - https://github.com/airbnb/Showkase/pull/341.
While this is useful for teams that are using Showkase with a release build, it's far more common to use Showkase as a "debug only" component browser. I think this change will actually cause all the previews to be retained since we are explicitly retaining the file that holds a reference to them. As a result, I'm reverting that PR and instead adding this information in the README in cases where you need to use Showkase in builds that have minification enabled.