To generate dynamic code samples and auto-generated properties, DSM needs to be aware of the code in its entirety. To meet that need, we create a bundle of the self-hosted Storybook instance and upload it to DSM.
Having the self-hosted Storybook instance bundled and published to DSM also lets InVision support DSM's highly requested component versioning feature.