SimeonC / storybook-xstate-addon

A storybook addon to assist with writing stories that rely on xstate
https://SimeonC.github.io/storybook-xstate-addon/
MIT License
54 stars 6 forks source link

Feature Request: Compatibility with vite-storybook-builder #37

Closed justrhysism closed 2 years ago

justrhysism commented 2 years ago

Whatever the target dist build is doesn't appear to work with Vite at the moment :(

exports is not defined

image

SimeonC commented 2 years ago

Hmm, looks like Vite is expecting esm output (currently only have es5 compatible output). Haven't had any time to look at vite yet, can you tell vite that storybook-xstate-addon is a es5 package instead of esm?

github-actions[bot] commented 2 years ago

:rocket: Issue was released in v2.2.0 :rocket:

SimeonC commented 2 years ago

@justrhysism I just released a new version which has the ESM build (as per the new setup from storybook/addon-kit). I think it may fix the support for vite - if not please re-open this issue.