Skip to content

build: fix masquerading as CJS issue - #700

Merged
pi0 merged 2 commits into
unjs:v1from
kricsleo:fix/type-issues
Oct 31, 2025
Merged

pi0 merged 2 commits into
unjs:v1from
kricsleo:fix/type-issues

Conversation

@kricsleo

@kricsleo kricsleo commented Oct 31, 2025

Copy link
Copy Markdown
Member

resolves #699
resolves #698

Before:
Image

After:
Image

@kricsleo
kricsleo requested a review from pi0 as a code owner October 31, 2025 03:49
@pi0 pi0 added the v1 label Oct 31, 2025
@pi0 pi0 changed the title build: fix "Masquerading as CJS" build: fix masquerading as CJS issue Oct 31, 2025

@pi0 pi0 left a comment

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.

Thanks ❤️

@codecov

codecov Bot commented Oct 31, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v1@4840fbf). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff          @@
##             v1     #700   +/-   ##
=====================================
  Coverage      ?   62.43%           
=====================================
  Files         ?       43           
  Lines         ?     3892           
  Branches      ?      660           
=====================================
  Hits          ?     2430           
  Misses        ?     1459           
  Partials      ?        3           

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

@pi0
pi0 merged commit dc0a267 into unjs:v1 Oct 31, 2025
4 checks passed
@pi0

pi0 commented Oct 31, 2025

Copy link
Copy Markdown
Member

It seems breaking drivers/* imports with module: "NodeNext"

Repro: https://stackblitz.com/edit/stackblitz-starters-a6gxr6sk?file=index.ts

(i guess we have to use a custom step to copy .d.ts files to .d.mts for drivers/ dist same as dist/)

(should be fixed by #710 in 1.17.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants