Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gatsby-plugin-postcss): Delete invalid plugins property from outer options object. #27430

Conversation

richardxia
Copy link
Contributor

Description

This is a followup to #27418, where I realized that my fix didn't completely fix the problem. See this comment of mine that describes the issue in a bit more detail.

The steps for reproducing are still the same as #27417, and the error message is still the same, but the internal data structures in the code are a little bit different than before.

In this PR, I have restored the delete statement back to what it was previously, since I think it was intentionally trying to delete the property at the outer level and not the inner level. I don't feel that I understand why this is happening, so I'd appreciate some input on whether this is the right change to make.

This time I tested it by running through my steps for reproducing again, and then once again hot-editing my node_modules/ directory with the exact same changes in this PR, so this time I at least feel like I've done a better job of doing a full integration test, but I'd appreciate input on anything else I should test.

Documentation

No documentation changes, as this should hopefully make it work properly.

Related Issues

Addresses #27417 (for real, this time, hopefully).

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 13, 2020
@richardxia richardxia force-pushed the fix-gatsby-plugin-postcss-plugins-nesting-2 branch from a79c2fb to 1a1a2de Compare October 13, 2020 19:17
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Oct 14, 2020
Copy link
Contributor

@LekoArts LekoArts left a comment

Choose a reason for hiding this comment

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

🙈 Also overlooked this. Plugins can potentially have subplugins (but not this one), so if we spread it like this we need to remove this key

@LekoArts LekoArts merged commit 2fd07f9 into gatsbyjs:master Oct 14, 2020
@LekoArts
Copy link
Contributor

Published in gatsby-plugin-postcss@3.0.3

@richardxia
Copy link
Contributor Author

Thank you so much! This time I can really confirm that the latest package works in my app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants