Conversation
commit: |
✅ Deploy Preview for tsdown ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
unrun stable
unrun stableunconfig-core & mark unrun stable
RobinTail
reviewed
Nov 9, 2025
| - `native`: Loads TypeScript configuration files using native runtime support. Requires a compatible environment, such as the latest Node.js, Deno, or Bun. | ||
| - `unconfig`: Loads configuration files with the `unconfig` library, ensuring broad compatibility across different runtimes. | ||
| - `unrun` _(experimental)_: Loads configuration files using the [`unrun`](https://gugustinette.github.io/unrun/) library, which provides similar compatibility as `unconfig` but with more performances. Install the `unrun` package to use this loader. | ||
| - `unrun`: Loads configuration files using the [`unrun`](https://gugustinette.github.io/unrun/) library. Install the `unrun` package to use this loader. |
Member
Author
There was a problem hiding this comment.
Yes. I will update the docs.
Member
Author
There was a problem hiding this comment.
tsdown and unrun will ensure that the rolldown versions remain consistent before release, up until rolldown officially launches its stable version.
There was a problem hiding this comment.
I understand, my point is that if I'm using .ts extensions in imports so that don't even need unrun, it's still installed anyway @sxzz
Member
Author
There was a problem hiding this comment.
Here are the reasons why we currently keep unrun:
- Node.js 20 does not support importing TypeScript files directly, and it's unreasonable to require users to install additional tools manually.
- Importing TypeScript files requires an explicit
.tsfile extension if using native loader, and importing JSON files needswith { type: 'json' }, both of which are incompatible with the current Vite/Vitest config resolver. unrunis lightweight, and both tsdown and unrun rely on the Rolldown engine.- Previously, unconfig used jiti by default. Since Rolldown is already used in tsdown, its bundle size is larger than unrun.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Linked Issues
Additional context