Open
Description
The problem
Storybook prefers that the preview
configuration files be statically-defined, because for some purposes they statically parse the file rather than depending on its runtime behavior (see storybookjs/storybook#27510 and storybookjs/storybook#27418 discussions, and output from the current build process on develop
)
The solution
Remove the dynamic nature of each Storybook's preview.ts
file, or create a pre-Storybook build step that transforms the dynamic contents into static ones.