Repository navigation
Conversation
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
2 times, most recently
from
November 19, 2026 12:14
ed9befd to
1fab03e
Compare
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
from
November 23, 2026 13:53
f33f818 to
b6e30c4
Compare
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
from
November 25, 2026 06:15
b6e30c4 to
a5ec321
Compare
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
2 times, most recently
from
November 25, 2026 07:39
568d670 to
c9bfbf0
Compare
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
2 times, most recently
from
November 25, 2026 16:35
afa29d4 to
2aa3343
Compare
Select bundled tsrs only where the declaration plugin would fail with "TypeScript is not installed", and leave every other generator choice to upstream. Run the selection in the CLI between resolveUserConfig() and buildWithConfigs(), and pass the CLI's own tsrs as dts.tsrs.moduleUrl instead of adding a core dependency. Rebase the baseline on main after #3352, document the tsrs version coupling and the failOnWarn behavior, and move the tsdown/Rolldown upgrade and migration rewrites out of scope. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When a `vp pack` build needs declarations and `typescript` does not resolve from the declaration plugin, select `generator: 'tsrs'` with the tsrs package that vite-plus ships for lint. Upstream fails with "TypeScript is not installed" in that case, so builds that work today keep their generator. The selection runs after resolveUserConfig(), so it also covers declarations that tsdown infers from package.json. It keeps explicit generators, isolated declarations (Oxc), Vue and custom languages, and configs without a tsconfig. It rejects dts.compilerOptions and dts.tsconfigRaw without typescript, because native generators ignore them. An explicit tsrs generator also gets the bundled tsrs moduleUrl. The plugin's experimental tsrs notice is suppressed when no generator is set, so failOnWarn builds do not fail after a successful emit. One info line names the bundled tsrs version instead. This needs the bundled declaration plugin 0.30 (tsdown 0.23.7). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#3511 performs the tsdown 0.23.7, declaration plugin 0.30.2, Rolldown 1.3.3, and Vite 8.4 beta upgrade. Record what it handles (native-preview, tsgo.path, the TypeScript 7.1 peer range, yuku) and the upgrade items that stay open (dts.entry, deprecated top-level options, yuku on musl). Note that tsrs4 also passes the probe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add packed-CLI snapshot cases for a project without typescript, with pnpm hoist:false and with default hoisting. Both select the bundled tsrs, and the experimental tsrs notice does not fail --fail-on-warn. Print the tsrs version with a v prefix, like other tool banners, so snapshot redaction masks it and tsrs updates do not churn the cases. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rebased base adopts the Cloudflare Oxlint preset (#3562). Type the selection with the resolved tsdown dts options instead of unknown records, parse tsconfig files through the shared JSON helpers, and drop the type assertions in pack-bin and the tests. Track only the current `extends` path when reading isolatedDeclarations, so a base that two `extends` entries share is not reported as a cycle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
from
November 25, 2026 16:46
2aa3343 to
46de882
Compare
This branch has not been deployed
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.
Projects that do not install
typescriptcannot generate declarations withvp packtoday. The build fails with "TypeScript is not installed". Upgrading tsdown alone does not change this, because the declaration plugin never selectstsrsautomatically.With this change,
vp packselectsgenerator: 'tsrs'with thetsrspackage thatvite-plusalready ships for lint, in that case only. All other generator choices stay with upstream, so builds that work today keep their output.resolveUserConfig()andbuildWithConfigs(), so it also covers declarations that tsdown infers frompackage.json.isolatedDeclarations(including throughextends), Vue and custom languages, and configs without a tsconfig.typescript,dts.compilerOptionsanddts.tsconfigRawfail with a diagnostic, because native generators do not apply them to the program.generator: 'tsrs'also gets the bundledtsrsasdts.tsrs.moduleUrl. Core gets no new dependency.tsrsnotice is suppressed, sofailOnWarnbuilds do not fail after a successful emit. One info line names the bundledtsrsversion instead:Projects without
typescriptgettsrsdeclarations with pnpmhoist: falseand with pnpm's default hoisting. The newcommand_pack_dts_tsrsandcommand_pack_dts_tsrs_hoistedcases record both layouts.The RFC covers the design, the
tsrsversion coupling, release gates, upstream requests, and the upgrade items that stay open after #3511.Stacked on #3511, which upgrades to tsdown
0.23.7and the declaration plugin0.30.2. The plugin0.28.8onmaindoes not know thetsrsgenerator. Merge #3511 first.🤖 Generated with Claude Code