Skip to content

Conversation

@ahabhgk
Copy link
Contributor

@ahabhgk ahabhgk commented Oct 27, 2025

Summary

Follow up for #11939

Related links

Checklist

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

Copilot AI review requested due to automatic review settings October 27, 2025 13:25
@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 27, 2025
@netlify
Copy link

netlify bot commented Oct 27, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit c6ee135
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/690079c4089d3800097a9afa
😎 Deploy Preview https://deploy-preview-12009--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 fixes a panic that occurs when deleting a module during incremental compilation with provided exports enabled. The issue was that when a module is deleted and its incoming dependencies are revoked, the parent modules of those dependencies weren't being marked as updated in the incremental system, causing inconsistent state.

Key Changes:

  • Enabled the providedExports incremental feature in test configuration (previously disabled)
  • Added logic to track and mark parent modules of updated dependencies as modified during incremental compilation

Reviewed Changes

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

File Description
tests/e2e/cases/incremental/remove-optimized-module/rspack.config.js Re-enabled providedExports in incremental configuration to test the fix
crates/rspack_core/src/compiler/compilation.rs Added tracking of parent modules for updated dependencies to ensure they're marked as modified in incremental mutations

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

@ahabhgk ahabhgk enabled auto-merge (squash) October 27, 2025 13:26
@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

📦 Binary Size-limit

Comparing c6ee135 to fix: type definitions for devtool module filename templates (#12013) by neverland

❌ Size increased by 2.38KB from 47.85MB to 47.85MB (⬆️0.00%)

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 27, 2025

CodSpeed Performance Report

Merging #12009 will not alter performance

Comparing fix-panic-delete-file (c6ee135) with main (abef4de)

Summary

✅ 17 untouched

@ahabhgk ahabhgk requested a review from jerrykingxyz October 28, 2025 08:27
@ahabhgk ahabhgk merged commit 90a4576 into main Oct 28, 2025
44 checks passed
@ahabhgk ahabhgk deleted the fix-panic-delete-file branch October 28, 2025 08:29
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