Skip to content

[UIK-6140][process-css-unplugin] unified css handling in vite for build and serve mode - #3264

Merged
Valeria-Zimnitskaya merged 3 commits into
release/v18from
UIK-6140/process-css-unplugin-vite-unified-trasnform
Oct 26, 2026
Merged

Valeria-Zimnitskaya merged 3 commits into
release/v18from
UIK-6140/process-css-unplugin-vite-unified-trasnform

Conversation

@slizhevskyv-semrush

@slizhevskyv-semrush slizhevskyv-semrush commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Changelog

@semcore/process-css-unplugin

Changed

  • The way how CSS is processed in vite for build and serve modes

Motivation and Context

What have changed:

  1. Adopted a unified way for css handling in vite in build and dev/serve mode. In both cases css is moved to dedicated files within node_modules/.vite/semcore-css folder. Tested on vite@6.1.0 with esbuild and vite@8.3.4 with rolldown under the hood.

    BEFORE

Screenshot 2026-10-22 at 11 56 25
AFTER
Screenshot 2026-10-22 at 11 55 43
  1. Changed hash generation. Before it was based on a file path and a content. Now it uses only css file content.
  2. Nothing changed in how css is processed in webpack.
  3. Updated unit tests.

How has this been tested?

I've updated unit tests & tested manually on test stand using vite@6 and vite@8

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Nice improve.

Checklist:

  • I have updated the documentation accordingly.
  • I have added new tests on added of fixed functionality.

Comment thread tools/process-css-unplugin/__tests__/index.test.ts Outdated
slizhevskyv-semrush and others added 2 commits October 26, 2026 13:59
Co-authored-by: ilyabrower <ilia.brauer@semrush.com>
Signed-off-by: slizhevskyv-semrush <uladzislau.slizheuski@semrush.com>
@Valeria-Zimnitskaya
Valeria-Zimnitskaya merged commit e0747cb into release/v18 Oct 26, 2026
19 of 20 checks passed
@Valeria-Zimnitskaya
Valeria-Zimnitskaya deleted the UIK-6140/process-css-unplugin-vite-unified-trasnform branch October 26, 2026 15:58
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.

3 participants