Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Add createReadStream method to OutputFileSystem interface, align with webpack: https://github.com/webpack/webpack/blob/v5.102.1/types.d.ts#L12923-L12939

Checklist

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

Copilot AI review requested due to automatic review settings October 22, 2025 04:58
@chenjiahan chenjiahan requested a review from hardfist as a code owner October 22, 2025 04:58
@netlify
Copy link

netlify bot commented Oct 22, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 19b7cb0
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f86c20be766f00082fb2bb

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: bug fix release: bug related release(mr only) labels Oct 22, 2025
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 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 createReadStream optional method to OutputFileSystem interface
  • 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.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

📦 Binary Size-limit

Comparing 19b7cb0 to fix(create-rspack): polish README and configurations (#11953) by neverland

🙈 Size remains the same at 47.80MB

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 22, 2025

CodSpeed Performance Report

Merging #11963 will not alter performance

Comparing output_fs_type_1022 (19b7cb0) with main (2376900)

Summary

✅ 17 untouched

@chenjiahan chenjiahan requested a review from 9aoy October 22, 2025 09:10
@chenjiahan chenjiahan merged commit bb946d3 into main Oct 22, 2025
41 of 43 checks passed
@chenjiahan chenjiahan deleted the output_fs_type_1022 branch October 22, 2025 09:18
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