I'm in the process of upgrading from Storybook 6 with Webpack 5 to Storybook 7 with Vite.
When running Storybook with storybook dev, the build succeeds and the Storybook UI displays correctly.
However, when building Storybook with storybook build, I receive an error that seems to be coming from Rollup and related to @storybook/addon-docs.
My understanding is that Vite uses esbuild for development builds, and rollup for production builds, which would explain a difference between the behaviour of storybook dev versus storybook build.
Attached is the log produced by storybook build.
I've tried searching for github issues on the Storybook, Rollup, and Vite repos related to this, but haven't been able to find this particular error. Any assistance would be greatly appreciated.