Skip to content

[POC] feat(core): add Rspack builtin CSS plugin - #8110

Draft
intellild wants to merge 7 commits into
mainfrom
codex/rspack-builtin-css-plugin
Draft

[POC] feat(core): add Rspack builtin CSS plugin#8110
intellild wants to merge 7 commits into
mainfrom
codex/rspack-builtin-css-plugin

Conversation

@intellild

Copy link
Copy Markdown

Summary

This POC introduces the experimental pluginRspackBuiltinCss plugin to replace Rsbuild's css-loader, style-loader, and CssExtractRspackPlugin pipeline with Rspack's built-in CSS module types. It preserves loaders added by Sass, Less, PostCSS, Lightning CSS, Tailwind CSS, and custom plugins.

The plugin translates supported output.cssModules settings and exposes the remaining Rspack CSS parser and generator options through its own parameters:

import { pluginRspackBuiltinCss } from '@rsbuild/core';

export default {
  plugins: [
    pluginRspackBuiltinCss({
      parser: {
        url: false,
      },
      generator: {
        localIdentHashSalt: 'custom-salt',
      },
    }),
  ],
};

CSS ?url imports and Vue SFC CSS Modules are not supported by this POC and emit warnings where applicable.


by OpenAI Codex

@coderabbitai

coderabbitai Bot commented Jul 15, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3f88f5fd-30f5-415d-af3d-4777d8d9a558

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 15, 2026

Copy link
Copy Markdown

Deploying rsbuild with  Cloudflare Pages  Cloudflare Pages

Latest commit: 633d24b
Status: ✅  Deploy successful!
Preview URL: https://98d02f2c.rsbuild-v2.pages.dev
Branch Preview URL: https://codex-rspack-builtin-css-plu.rsbuild-v2.pages.dev

View logs

@intellild intellild changed the title feat(core): add Rspack builtin CSS plugin (POC) [POC] feat(core): add Rspack builtin CSS plugin Jul 16, 2026
@intellild
intellild force-pushed the codex/rspack-builtin-css-plugin branch from bd41e60 to 633d24b Compare July 21, 2026 05:25
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.

1 participant