storybookjs / addon-postcss

This Storybook addon can be used to run the PostCSS preprocessor against your stories.
MIT License
20 stars 22 forks source link

Don't depend directly on postcss? #6

Closed phated closed 3 years ago

phated commented 3 years ago

Currently, this module is shipping with a direct dependency on postcss@^7.0.35, but allows the implementation to be overridden.

Should we just have a peerDep on postcss instead? That way consumers can just install the version of the tool they want/need.

phated commented 3 years ago

The decision was to depend directly on PostCSS and the loaders to make this easy to use. Since this is versioned separately from storybook itself, we can just keep those dependencies updated as we see fit.

I'll also be removing the webpack peerDep, since that is managed by storybook core.