When running yarn storybook:build for my project using React Native Web with Storybook, the build fails with a specific issue related to the Terser plugin :
I'm currently disabling the Terser plugin as a workaround like this : config.optimization.minimizer = config.optimization.minimizer.filter( (plugin) => plugin.constructor.name !== 'TerserPlugin', );. However the build work but not launching sotrybook, this seems like a bug in @storybook/react-webpack5's webpack config.
Any assistance with resolving this bug or providing a proper workaround would be greatly appreciated.
Describe the bug
When running
yarn storybook:build
for my project using React Native Web with Storybook, the build fails with a specific issue related to the Terser plugin :Additional context
I'm currently disabling the Terser plugin as a workaround like this :
config.optimization.minimizer = config.optimization.minimizer.filter( (plugin) => plugin.constructor.name !== 'TerserPlugin', );
. However the build work but not launching sotrybook, this seems like a bug in@storybook/react-webpack5
's webpack config.Any assistance with resolving this bug or providing a proper workaround would be greatly appreciated.