Skip to content

Conversation

@jerrykingxyz
Copy link
Contributor

Summary

The buildDependency resolver should support some commonly used file extensions in the rspack configuration.

This PR will add .js, .ts, .mjs, .cjs, .json, .node extensions for buildDependency resolver

Related links

Checklist

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

Copilot AI review requested due to automatic review settings November 21, 2025 07:56
@netlify
Copy link

netlify bot commented Nov 21, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 3e2a1fa
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/69201b2f6fcaa70007e4aa92

@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 21, 2025
@jerrykingxyz jerrykingxyz linked an issue Nov 21, 2025 that may be closed by this pull request
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 enhances the buildDependency resolver in rspack's persistent cache system by adding support for commonly used file extensions (.js, .ts, .mjs, .cjs, .json, .node). This allows the build dependency tracking system to properly resolve dependencies with these extensions, which is essential for accurate cache invalidation.

Key changes:

  • Adds a new extensions configuration to the resolver with 6 file types
  • Updates test suite to validate resolution of the newly supported extensions

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

@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing 3e2a1fa to feat: support SRI with experiments.css and CssExtractRspackPlugin (#12239) by harpsealjs

❌ Size increased by 512bytes from 47.63MB to 47.63MB (⬆️0.00%)

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 21, 2025

CodSpeed Performance Report

Merging #12260 will not alter performance

Comparing jerry/bd (3e2a1fa) with main (5322cc8)

Summary

✅ 17 untouched

@jerrykingxyz jerrykingxyz merged commit 7763043 into main Nov 21, 2025
56 checks passed
@jerrykingxyz jerrykingxyz deleted the jerry/bd branch November 21, 2025 08:40
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.

[Bug]: BuildDependencies: can't resolve for TS imports

3 participants