stream_1.PassThrough is not a constructor
Referencing this issue from the twing-loader project, since I am seeing the same issue with my builds in either Vite or Webpack. Original issue: https://gitlab.com/nightlycommit/twing-loader/-/issues?show=eyJpaWQiOiI0NyIsImZ1bGxfcGF0aCI6Im5pZ2h0bHljb21taXQvdHdpbmctbG9hZGVyIiwiaWQiOjE2MTgzMjY5Mn0%3D
I am using Twing specifically for rendering Twig files in a Storybook environment, using Storybook 8. Version 5 of Twing works great in my setup, but I see this stream_1.PassThrough is not a constructor error whenever I upgrade to anything from V5 to recent. I see this same error with the Rollup package on Vite as well.
It seems to be related to the output buffering that was mentioned here:https://github.com/rollup/rollup/discussions/5280
I might be missing a config somewhere, but I am just not able to set any loader/environment that will work properly either during the Storybook rendering process. I am able to get it to work in Vite, but only until I go to build Storybook, which is the static HTML generation process for when it's built and sent over to Chromatic for visual regression testing.
If I can provide any details, let me know! I am down to try anything to make this work, since we would prefer to move over to Vite at this point with our Storybook process to remain some level of parity with our regular build process.