Skip to content

fix(TsconfigPathsPlugin): gracefully handle missing tsconfig.json#502

Merged
alexander-akait merged 2 commits intomainfrom
fix/tsconfig-paths-missing-config
Mar 26, 2026
Merged

fix(TsconfigPathsPlugin): gracefully handle missing tsconfig.json#502
alexander-akait merged 2 commits intomainfrom
fix/tsconfig-paths-missing-config

Conversation

@xiaoxiaojx
Copy link
Copy Markdown
Member

Summary
fix(TsconfigPathsPlugin): gracefully handle missing tsconfig.json

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 26, 2026

🦋 Changeset detected

Latest commit: d198a3e

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
Copy link
Copy Markdown

codecov Bot commented Mar 26, 2026

Codecov Report

❌ Patch coverage is 92.30769% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.42%. Comparing base (97357ea) to head (d198a3e).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/TsconfigPathsPlugin.js 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #502      +/-   ##
==========================================
- Coverage   93.43%   93.42%   -0.02%     
==========================================
  Files          50       50              
  Lines        2515     2524       +9     
  Branches      767      773       +6     
==========================================
+ Hits         2350     2358       +8     
- Misses        136      137       +1     
  Partials       29       29              
Flag Coverage Δ
integration 93.42% <92.30%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

Comment thread test/tsconfig-paths.test.js Outdated
extensions: [".ts", ".tsx"],
mainFields: ["browser", "main"],
mainFiles: ["index"],
tsconfig: path.join(noTsconfigDir, "tsconfig.json"),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in such case we should throw an error, we should not throw an error when tsconfig is just a true

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Mar 26, 2026

CLA Signed

The committers listed above are authorized under a signed CLA.

@xiaoxiaojx xiaoxiaojx force-pushed the fix/tsconfig-paths-missing-config branch from 1bdb490 to 86e3b8e Compare March 26, 2026 13:44
@alexander-akait alexander-akait merged commit 8373b5f into main Mar 26, 2026
30 of 32 checks passed
@alexander-akait alexander-akait deleted the fix/tsconfig-paths-missing-config branch March 26, 2026 15:52
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.

2 participants