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: unify css collecting order #11671

Merged
merged 2 commits into from
Sep 22, 2023
Merged

fix: unify css collecting order #11671

merged 2 commits into from
Sep 22, 2023

Conversation

lsdsjy
Copy link
Contributor

@lsdsjy lsdsjy commented Jan 12, 2023

Fixes #11662

Description

This PR unify the CSS collecting order whether cssCodeSplit is true or false, aligning the latter with the former.

Additional context


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Before submitting the PR, please make sure you do the following

  • Read the Contributing Guidelines.
  • Read the Pull Request Guidelines and follow the PR Title Convention.
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. fixes #123).
  • Ideally, include relevant tests that fail without this PR but pass with it.

@lsdsjy lsdsjy marked this pull request as ready for review January 12, 2023 08:30
Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

packages/vite/src/node/plugins/css.ts Outdated Show resolved Hide resolved
@sapphi-red sapphi-red added feat: css p3-minor-bug An edge case that only affects very specific usage (priority) labels Jul 24, 2023
@lsdsjy lsdsjy force-pushed the css-unsplit branch 4 times, most recently from 023be7b to 763b52a Compare August 9, 2023 09:47
Copy link
Member

@sapphi-red sapphi-red left a comment

Choose a reason for hiding this comment

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

LGTM
Thank you!

@ronen-e
Copy link

ronen-e commented Aug 22, 2023

I'm experiencing the css issues as well. I noticed issue #11662 and this PR while searching for solutions and I'm wondering when it will be merged and if there are existing workarounds.

@sapphi-red sapphi-red merged commit 20a8a15 into vitejs:main Sep 22, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat: css p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent order of styles when cssCodeSplit is false
3 participants