feat(plugin-less): support for parallel loader execution#5805
Merged
chenjiahan merged 5 commits intomainfrom Aug 10, 2025
Merged
feat(plugin-less): support for parallel loader execution#5805chenjiahan merged 5 commits intomainfrom
chenjiahan merged 5 commits intomainfrom
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for parallel loader execution to the @rsbuild/plugin-less plugin, allowing the less-loader to run in worker threads for improved build performance when processing large numbers of Less modules.
- Introduces a new
paralleloption to the plugin configuration with proper TypeScript types and JSDoc documentation - Updates the plugin implementation to configure Rspack's parallel loader when the option is enabled
- Adds comprehensive documentation in both English and Chinese for the new feature
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/plugin-less/src/index.ts | Adds the parallel option type definition and implementation logic to enable parallel loader execution |
| website/docs/en/plugins/list/plugin-less.mdx | Documents the new parallel option in English with usage examples and warnings |
| website/docs/zh/plugins/list/plugin-less.mdx | Documents the new parallel option in Chinese with usage examples and warnings |
| e2e/cases/plugin-less/parallel/* | Adds end-to-end tests to verify the parallel option works correctly in both development and production modes |
This was referenced Aug 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Add support for parallel loader execution to
@rsbuild/plugin-less:This option is experimental and may not work if your Less options contain functions.
Related Links
See Rspack - Rule.use.parallel for more details.
Checklist