Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

  • Add validation to ensure output.path is an absolute path.
  • Update documentation to clarify this requirement.

Before

Screenshot 2025-11-02 at 20 56 37

After

Screenshot 2025-11-02 at 20 57 32

webpack

Screenshot 2025-11-01 at 19 36 07

Checklist

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

@chenjiahan chenjiahan requested a review from hardfist as a code owner November 2, 2025 13:00
Copilot AI review requested due to automatic review settings November 2, 2025 13:00
@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Nov 2, 2025
@netlify
Copy link

netlify bot commented Nov 2, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 26f76b7
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/69075beb02dded0008178a24

Copy link
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 validation to ensure output.path is an absolute path and updates documentation to reflect this requirement. However, there's a critical conflict between the validation code and the template changes.

  • Adds validateOutputPath function to enforce absolute path requirement for output.path
  • Updates English and Chinese documentation to clarify path requirements
  • Modifies React JS template configuration (introducing a conflict)

Reviewed Changes

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

File Description
packages/rspack/src/util/validateConfig.ts Adds validation function to check that output.path is an absolute path
website/docs/en/config/output.mdx Updates documentation to list path requirements as bullet points including absolute path requirement
website/docs/zh/config/output.mdx Chinese translation of documentation updates
packages/create-rspack/template-react-js/rspack.config.mjs Adds output.path configuration with relative path (conflicts with validation)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2025

📦 Binary Size-limit

Comparing 26f76b7 to chore(deps): update dependency @biomejs/biome to ^2.3.2 (#12055) by renovate[bot]

🙈 Size remains the same at 47.85MB

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 2, 2025

CodSpeed Performance Report

Merging #12061 will not alter performance

Comparing output_path_1102 (26f76b7) with main (1ad3537)

Summary

✅ 17 untouched

stormslowly
stormslowly previously approved these changes Nov 2, 2025
@chenjiahan chenjiahan merged commit 1c5432f into main Nov 3, 2025
68 of 70 checks passed
@chenjiahan chenjiahan deleted the output_path_1102 branch November 3, 2025 02:43
@h-a-n-a h-a-n-a mentioned this pull request Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants