Skip to content

Conversation

@phated
Copy link
Contributor

@phated phated commented Jan 14, 2021

Issue: Ref #12668

What I did

I dug into the PostCSS stuff related to the v8 upgrades, specifically what happened in the breaking change to postcss-loader. It looks like the primary changes were dropping support for node <10.13, changing the way config options were specified and making PostCSS a peerDepedency.

Since the embedded postcss-loader in Storybook has control of all those things, it seems that this can be updated (in a non-breaking manner) to ^4.1.0 as long as a PostCSS@^7 is added as a direct dependency of @storybook/core.

I believe upgrading this loader is the first step in moving us towards supporting PostCSS v8.

How to test

  • Is this testable with Jest or Chromatic screenshots? Unsure, I checked the usage in examples/html-kitchen-sink.
  • Does this need a new example in the kitchen sink apps? Already in the examples/html-kitchen-sink.
  • Does this need an update to the documentation? ❌

If your answer is yes to any of these, please make sure to include it in your PR.

Modifies the code to support the changes to options block, and
adds an explicit postcss dependency at ^7.0.35 since it is now
a peerDep of postcss-loader
@phated
Copy link
Contributor Author

phated commented Jan 14, 2021

cc'ing @ThibaudAV since I updated the loader in the angular stuff, too.

Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@shilman shilman changed the title upgrade: Updates postcss-loader to ^4.1.0 Dependencies: Update postcss-loader to ^4.1.0 Jan 14, 2021
@shilman shilman merged commit adece09 into storybookjs:next Jan 14, 2021
@phated phated deleted the phated/postcss-loader branch January 14, 2021 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants