hipstersmoothie / storybook-dark-mode

A storybook addon that lets your users toggle between dark and light mode.
MIT License
435 stars 56 forks source link

Import addon as named #155

Closed IanVS closed 2 years ago

IanVS commented 3 years ago

It's recommended to use named imports for @storybook/addons, and in fact the default import causes problems with the vite storybook builder. The testing I did was copying this change into my local project and confirming the vite builder worked correctly.

hipstersmoothie commented 2 years ago

:rocket: PR was released in v1.0.9 :rocket: