Closed justrhysism closed 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
?
:rocket: Issue was released in v2.2.0
:rocket:
@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.
Whatever the target dist build is doesn't appear to work with Vite at the moment :(
exports is not defined