Visitar URL original
fix: soft-skip broken tsconfig in auto mode and keep relative extends relative by xiaoxiaojx · Pull Request #645 · webpack/enhanced-resolve · GitHub
Skip to content

fix: soft-skip broken tsconfig in auto mode and keep relative extends relative - #645

Merged
alexander-akait merged 1 commit into
mainfrom
fix/tsconfig-missing-relative-extends
Jul 30, 2026
Merged

alexander-akait merged 1 commit into
mainfrom
fix/tsconfig-missing-relative-extends

Conversation

@xiaoxiaojx

Copy link
Copy Markdown
Member

Summary
Fixes webpack/webpack#21551.

What kind of change does this PR introduce?
fix

Did you add tests for your changes?
Yes

Does this PR introduce a breaking change?
No

If relevant, what needs to be documented once your changes are merged or what have you already documented?
Nothing

Use of AI
Part

@changeset-bot

changeset-bot Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4a2f7d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
enhanced-resolve Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.14%. Comparing base (24c3521) to head (4a2f7d1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #645      +/-   ##
==========================================
+ Coverage   98.11%   98.14%   +0.03%     
==========================================
  Files          49       49              
  Lines       10010    10018       +8     
==========================================
+ Hits         9821     9832      +11     
+ Misses        189      186       -3     
Flag Coverage Δ
integration 98.14% <100.00%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed

codspeed Bot commented Jul 29, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 39.96%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 141 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ Memory node-compare: node require.resolve x 1000 21.4 KB 35.6 KB -39.96%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix/tsconfig-missing-relative-extends (4a2f7d1) with main (24c3521)

Open in CodSpeed

… relative

Published packages may ship a monorepo tsconfig whose relative extends target
is not published. With tsconfig: true, stop at the first existing config like
TypeScript's findConfigFile; on load failure soft-fail (no paths) without
walking to a parent. Also stop treating relative extends paths that contain
slashes as npm packages.
Fixes webpack/webpack#21551.
@xiaoxiaojx
xiaoxiaojx force-pushed the fix/tsconfig-missing-relative-extends branch from 9a958e2 to 4a2f7d1 Compare July 29, 2026 17:36
@alexander-akait
alexander-akait merged commit be8ebf5 into main Jul 30, 2026
37 of 38 checks passed
@alexander-akait
alexander-akait deleted the fix/tsconfig-missing-relative-extends branch July 30, 2026 10:08
alexander-akait pushed a commit that referenced this pull request Jul 30, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## enhanced-resolve@5.24.5

### Patch Changes

- Soft-fail when auto tsconfig discovery loads a broken config, and keep
relative `extends` paths relative. (by
[@xiaoxiaojx](https://github.com/xiaoxiaojx) in
[#645](#645))

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.109.x build error with @textcomplete module

2 participants