-
-
Notifications
You must be signed in to change notification settings - Fork 746
fix(config): validate output.path must be absolute
#12061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this 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
validateOutputPathfunction to enforce absolute path requirement foroutput.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.
📦 Binary Size-limit
🙈 Size remains the same at 47.85MB |
CodSpeed Performance ReportMerging #12061 will not alter performanceComparing Summary
|
Summary
output.pathis an absolute path.Before
After
webpack
Checklist