-
-
Notifications
You must be signed in to change notification settings - Fork 746
fix(types): add createReadStream to OutputFileSystem interface #11963
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 the createReadStream method to the OutputFileSystem interface to align with webpack's filesystem interface definition. The change introduces supporting type definitions for stream options and filesystem implementations required by the createReadStream method.
Key Changes:
- Added
createReadStreamoptional method toOutputFileSysteminterface - Introduced supporting type definitions (
StreamOptions,FSImplementation,CreateReadStreamFSImplementation,ReadStreamOptions,CreateReadStream)
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| packages/rspack/src/util/fs.ts | Added type definitions for stream options and filesystem implementations, plus the createReadStream method to OutputFileSystem |
| packages/rspack/etc/core.api.md | API documentation update reflecting the new public types and interface changes |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📦 Binary Size-limit
🙈 Size remains the same at 47.80MB |
CodSpeed Performance ReportMerging #11963 will not alter performanceComparing Summary
|
Summary
Add
createReadStreammethod to OutputFileSystem interface, align with webpack: https://github.com/webpack/webpack/blob/v5.102.1/types.d.ts#L12923-L12939Checklist