Skip to content

feat(plugin-less): support for parallel loader execution#5805

Merged
chenjiahan merged 5 commits intomainfrom
less_parallel_0810
Aug 10, 2025
Merged

feat(plugin-less): support for parallel loader execution#5805
chenjiahan merged 5 commits intomainfrom
less_parallel_0810

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Add support for parallel loader execution to @rsbuild/plugin-less:

pluginLess({
  parallel: true,
});

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

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings August 10, 2025 02:03
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 10, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit c608659
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/689806e33481e8000892a92a
😎 Deploy Preview https://deploy-preview-5805--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 61 (🔴 down 6 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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 parallel option 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

@chenjiahan chenjiahan merged commit bd43c39 into main Aug 10, 2025
11 checks passed
@chenjiahan chenjiahan deleted the less_parallel_0810 branch August 10, 2025 02:47
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.

2 participants