You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw the comment about the difficulty of making a synchronous option for this library, so I understand that this might not be feasible. Still, I wanted to log the request: top-level await isn't available in storybooks, particularly when taking snapshots for Chromatic. This means I have to jump through complex Storybook hoops of using loaders instead of standard args. It's a ton of boiler plate every time I use it, just to get the single await, and makes it really hard to override/set custom values per story. Would love a synchronous mode, it would really clean up our code.
The text was updated successfully, but these errors were encountered:
Perhaps your bundler (vite, webpack, tubopack) is misconfigured. top-level await is only available for ES Modules-style code, Check that bundler outputs ES Modules style code.
On the other hand, it makes sense to provide an API like buildSync() for those who want to write code synchronously. Frankly, I'm not really willing to do it, since the workaround is to use top-level await. But if it's easy to implement, I'm willing to try.
I saw the comment about the difficulty of making a synchronous option for this library, so I understand that this might not be feasible. Still, I wanted to log the request: top-level await isn't available in storybooks, particularly when taking snapshots for Chromatic. This means I have to jump through complex Storybook hoops of using
loaders
instead of standard args. It's a ton of boiler plate every time I use it, just to get the singleawait
, and makes it really hard to override/set custom values per story. Would love a synchronous mode, it would really clean up our code.The text was updated successfully, but these errors were encountered: