Migrate build system from Vite to tsdown#25
Merged
bartveneman merged 5 commits intomainfrom Mar 8, 2026
Merged
Conversation
- Add tsdown.config.js with dts and publint enabled - Remove vite.config.js, vite, vite-plugin-dts, @codecov/vite-plugin, publint deps - Update build script from `vite build` to `tsdown` - Remove lint-package script and lint-package CI job (publint now runs as part of build) - Update package.json exports/main/types to match tsdown default .mjs/.d.mts output https://claude.ai/code/session_01JJJhv1D5c6sE4e4L9AJZ5x
Replace @codecov/vite-plugin with @codecov/rollup-plugin in tsdown config. Restore CODECOV_TOKEN env var in the build CI step. https://claude.ai/code/session_01JJJhv1D5c6sE4e4L9AJZ5x
Resolves high severity rollup path traversal (GHSA-mw96-cpmx-2vgc) and moderate esbuild dev server issue (GHSA-67mh-4wv8-2f99). Remaining 3 moderate undici issues are unfixable upstream in @codecov/rollup-plugin's transitive deps. https://claude.ai/code/session_01JJJhv1D5c6sE4e4L9AJZ5x
Bundle ReportChanges will decrease total bundle size by 4.86kB (-52.79%) ⬇️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: cssLayerTree-esmAssets Changed:
|
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.
Summary
This PR migrates the project's build system from Vite to tsdown, simplifying the build configuration and tooling while maintaining the same output format and functionality.
Key Changes
vite.config.jsand all Vite-specific build setuptsdown.config.jswith integrated DTS generation, publint validation, and Codecov bundle analysisvite buildtotsdownin package.json./dist/css-layer-tree.jsto./dist/index.mjsand types from./dist/index.d.tsto./dist/index.d.mtsvite,vite-plugin-dts,@codecov/vite-plugin,publinttsdown,@codecov/rollup-pluginImplementation Details
https://claude.ai/code/session_01JJJhv1D5c6sE4e4L9AJZ5x