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

feat: enable better cssOptions override for modules #30112

Merged
merged 18 commits into from
Mar 25, 2021
Merged

Conversation

wardpeet
Copy link
Contributor

@wardpeet wardpeet commented Mar 8, 2021

Description

Enable overriding of esModule props to support old commonjs Syntax.

  • gatsby-plugin-sass
  • gatsby-plugin-less
  • gatsby-plugin-postcss
  • gatsby-plugin-stylus

Documentation

PR #30267 needs to be merged when released

Related Issues

Fixes #29955
Fixes #30040

[ch27340]

@wardpeet wardpeet marked this pull request as ready for review March 11, 2021 18:28
Copy link
Contributor Author

@wardpeet wardpeet left a comment

Choose a reason for hiding this comment

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

LGTM

packages/gatsby-plugin-postcss/README.md Show resolved Hide resolved
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.

👍

@LekoArts LekoArts merged commit 4571d2b into master Mar 25, 2021
@LekoArts LekoArts deleted the fix/css-modules branch March 25, 2021 12:34
@lnikell
Copy link

lnikell commented Mar 25, 2021

This is will be extremely helpful for migration from v2 to v3, since moving a big project to the new CSS modules exports is complicated and does not have any advantages if the project is well written. Thank you for the fix, you saved me a lot of time :)

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.

gatsby-plugin-sass prevents configuration of CSS Loader
4 participants