Skip to content

chore: remove unnecessary exports and helpers#5887

Merged
chenjiahan merged 1 commit intomainfrom
cleanup_helpers_0819
Aug 20, 2025
Merged

chore: remove unnecessary exports and helpers#5887
chenjiahan merged 1 commit intomainfrom
cleanup_helpers_0819

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Improve code clarity and consistency by removing unnecessary exports and dependencies.

Checklist

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

Copilot AI review requested due to automatic review settings August 19, 2025 14:16
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 19, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit b591172
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68a4873fa5ffff0008901bec
😎 Deploy Preview https://deploy-preview-5887--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: 69 (🔴 down 7 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 removes unnecessary exported functions, constants, and dependencies to improve code clarity and maintainability by reducing the public API surface and eliminating unused code.

  • Remove unused helper function and constant exports
  • Convert public exports to private functions/constants where external access isn't needed
  • Clean up unused React dependencies in webpack example

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/plugin-babel/src/plugin.ts Convert exported constant to private constant
packages/core/src/server/runner/index.ts Convert exported class to private class
packages/core/src/server/hmrFallback.ts Convert exported function to private function
packages/core/src/rspack-plugins/RsbuildHtmlPlugin.ts Convert exported constant to private constant
packages/core/src/plugins/swc.ts Convert exported function to private function
packages/core/src/hooks.ts Convert exported function to private function
packages/core/src/helpers/index.ts Remove unused helper function export
packages/core/src/constants.ts Remove unused constant export
packages/compat/plugin-webpack-swc/src/utils.ts Convert exported function to private function
examples/webpack/package.json Remove unused React dependencies
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@chenjiahan chenjiahan merged commit 727212b into main Aug 20, 2025
12 checks passed
@chenjiahan chenjiahan deleted the cleanup_helpers_0819 branch August 20, 2025 02:35
@chenjiahan chenjiahan mentioned this pull request Aug 21, 2025
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.

2 participants