Skip to content

Conversation

askoufis
Copy link
Contributor

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

Wasn't sure if this really counts as a code refactor. It's really a dependency update but there's no checkbox for that.

Jiti v2 has been out for a while now. Other than the slightly different API usage and deprecation of the synchronous API, it's functionally the same.

Breaking Changes

Additional Info

tsLoader = (filepath) => jiti(filepath);
const jiti = createJiti(__filename, opts);

tsLoader = (filepath) => jiti.import(filepath, { default: true });
Copy link
Contributor Author

@askoufis askoufis Aug 31, 2025

Choose a reason for hiding this comment

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

default: true is effectively a shorthand for mod?.default ?? mod (docs). It was required to get tests passing, specifically the cts and mts config autoload tests. I'm not exactly sure why this is necessary now - perhaps due to some changes in how interopDefault works in v2.

Copy link

codecov bot commented Sep 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.23%. Comparing base (d2651fc) to head (74b7363).
⚠️ Report is 20 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #710      +/-   ##
==========================================
- Coverage   88.30%   88.23%   -0.07%     
==========================================
  Files           3        3              
  Lines         359      357       -2     
  Branches      118      118              
==========================================
- Hits          317      315       -2     
  Misses         38       38              
  Partials        4        4              

☔ 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.

@alexander-akait alexander-akait merged commit 9c74974 into webpack-contrib:master Sep 1, 2025
16 of 17 checks passed
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