Skip to content

fix(build): fix tsdown external dependency regex on Windows (#626)#628

Merged
vishxrad merged 1 commit into
thesysdev:mainfrom
shogun444:fix/tsdown-windows-neverbundle-626
Jun 10, 2026
Merged

fix(build): fix tsdown external dependency regex on Windows (#626)#628
vishxrad merged 1 commit into
thesysdev:mainfrom
shogun444:fix/tsdown-windows-neverbundle-626

Conversation

@shogun444

Copy link
Copy Markdown
Contributor

What

Fixes #626.

The existing neverBundle regex (/^[^./]/) treats Windows drive-letter paths as external dependencies. During Windows builds this leaves local TypeScript imports unresolved in generated output, which later causes @openuidev/browser-bundle to fail with errors such as:

Could not resolve "./library.ts"
Could not resolve "./Renderer.tsx"

This change updates the regex so Windows absolute paths are handled correctly while preserving the existing behavior for package imports.

Changes

Updated the neverBundle configuration in the affected tsdown configs to avoid matching Windows absolute paths.

Test Plan

Tested on Windows 11.

pnpm install now completes successfully and @openuidev/browser-bundle builds without the unresolved import errors. I also verified that pnpm --filter @openuidev/docs dev starts successfully after the change.

@vishxrad vishxrad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@vishxrad vishxrad merged commit b2bce2b into thesysdev:main Jun 10, 2026
1 check 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.

Fix tsdown external dependency regex on Windows

2 participants