addon-kit
addon-kit copied to clipboard
[Bug] Exports config break vite based build
Describe the bug
When user runs Storybook on vite ESM exports config (.mjs) makes it are not capable to build.
Steps to reproduce the behavior
- Set up vite based storybook
- Install
[email protected] - Run build-storybook
- Error happens.
Expected behavior
Should work
Screenshots and/or logs
Available here https://github.com/morewings/storybook-addon-theme-provider/issues/11
Additional context
I managed to fix it by removing exports config from package.json and using only cjs build. Not sure if it's the best way.