Repository navigation
Conversation
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://codex-tsdown-native-design-viteplus-dev.voidzero-docs.workers.dev (commit f33f818)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
fengmk2
force-pushed
the
codex/tsrs-lint-bench
branch
4 times, most recently
from
November 16, 2026 15:48
ca179b4 to
6594659
Compare
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
from
November 18, 2026 03:55
73e2953 to
ed9befd
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>
fengmk2
force-pushed
the
codex/tsdown-native-design
branch
from
November 19, 2026 12:14
ed9befd to
1fab03e
Compare
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>
Contributor
|
✅ Staging deployment successful! Preview: https://viteplus-staging.void.app/ |
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.The RFC covers the design, the
tsrsversion coupling, release gates, and upstream requests.Merge order: this PR needs the bundled declaration plugin
0.30(tsdown0.23.7, Rolldown 1.3). The current plugin0.28.8does not know thetsrsgenerator. Merge the upgrade first, then add the no-typescriptsnapshot cases here.🤖 Generated with Claude Code