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: add back postcss-preset-env #18704

Merged
merged 106 commits into from Feb 2, 2023
Merged

feat: add back postcss-preset-env #18704

merged 106 commits into from Feb 2, 2023

Conversation

danielroe
Copy link
Member

@danielroe danielroe commented Feb 2, 2023

📚 Description

This PR updates #9671 to add back postcss-preset-env, which is now updated for PostCSS8. This reduces the breaking change surface of the linked PR.

We might also consider reverting the breaking changes to postcss options in order to make this more manageable as a migration step. What do you think @pi0 - is there a reason we need to make the following change?

  • build.postcss has been moved to postss-loader options format:
    • build.postcss.plugins to build.postcss.postcssOptions.plugins, the object format is still same
    • build.postcss.order to build.postcss.postcssOptions.order

Note: to reduce the clutter of commits this is marked as a PR against 2.x but before merge I will update to merge into #9671 and thence into 2.x.

pi0 and others added 30 commits May 11, 2021 20:58
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
* chore: update logo

* chore: update link to community
Co-authored-by: Pooya Parsa <pyapar@gmail.com>
@codesandbox
Copy link

codesandbox bot commented Feb 2, 2023

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

@codecov-commenter
Copy link

codecov-commenter commented Feb 2, 2023

Codecov Report

Base: 65.19% // Head: 66.55% // Increases project coverage by +1.35% 🎉

Coverage data is based on head (f1d7ddd) compared to base (9677fbe).
Patch coverage: 75.60% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##              2.x   #18704      +/-   ##
==========================================
+ Coverage   65.19%   66.55%   +1.35%     
==========================================
  Files          94       93       -1     
  Lines        4155     4075      -80     
  Branches     1172     1149      -23     
==========================================
+ Hits         2709     2712       +3     
+ Misses       1167     1103      -64     
+ Partials      279      260      -19     
Flag Coverage Δ
unittests 66.55% <75.60%> (+1.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/config/src/config/build.js 100.00% <ø> (ø)
packages/config/src/options.js 95.21% <28.57%> (-1.92%) ⬇️
packages/webpack/src/utils/postcss.js 82.79% <83.87%> (-0.93%) ⬇️
packages/webpack/src/utils/style-loader.js 79.24% <100.00%> (+0.29%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

pi0
pi0 previously approved these changes Feb 2, 2023
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

Nice work on adding back compatibility with env. since we are introducing other breaking changes anyway in 2.16, postcss8 shouldn’t be a problem.

@pi0
Copy link
Member

pi0 commented Feb 2, 2023

We need to test edge against tailwindcss module.

@danielroe danielroe marked this pull request as ready for review February 2, 2023 13:42
@danielroe danielroe changed the base branch from 2.x to feat/postcss8 February 2, 2023 13:43
@danielroe danielroe dismissed pi0’s stale review February 2, 2023 13:43

The base branch was changed.

@danielroe danielroe merged commit f1d7ddd into feat/postcss8 Feb 2, 2023
@danielroe danielroe deleted the feat/preset-env branch February 2, 2023 13:44
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.

None yet