feat(css)!: move all CSS support to @tsdown/css package#809
Merged
Conversation
BREAKING CHANGE: Basic CSS support has been removed from the core tsdown package. All CSS processing now requires @tsdown/css to be installed. - Moved CSS types, config resolution, and processing utilities to @tsdown/css - Removed tsdown/css public export path - Added guard plugin (transform.order=post) that errors when CSS files are encountered without @tsdown/css installed - Projects without CSS files are unaffected
✅ Deploy Preview for tsdown-main ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
tsdown
create-tsdown
@tsdown/css
@tsdown/exe
tsdown-migrate
commit: |
@tsdown/css package@tsdown/css package
All CSS support now requires @tsdown/css - remove "requires @tsdown/css" per-option notes, update architecture descriptions, and fix references to removed src/features/css/ directory.
Replace relative path imports in @tsdown/css with tsdown/internal subpath export for utility functions (toArray, resolveComma, importWithError) and types (MarkPartial, Overwrite).
- Export fsExists, fsRemove, Logger from tsdown/internal - Replace MinimalLogger with Logger from tsdown/internal - Delete packages/css/src/types.ts (MinimalLogger no longer needed) - Update @tsdown/exe to use tsdown/internal for fs utils and Logger
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
tsdownpackage — all CSS processing now requires@tsdown/css@tsdown/csstsdown/internalsubpath export for shared utilities (toArray,resolveComma,importWithError,fsExists,fsRemove,Logger)tsdown:css-guard) withtransform.order = 'post'that throws a clear error when CSS files are encountered without@tsdown/css./cssexport from main packageMinimalLoggerwithLoggerfromtsdown/internalin both@tsdown/cssand@tsdown/exeBreaking Changes
@tsdown/cssis now required for any CSS processing (previously basic CSS extraction worked without it)tsdown— import them from@tsdown/cssinstead./csssubpath export has been removed from the main packageTest plan
pnpm buildsucceedspnpm test run— 354 tests pass (including 7 newresolveCssOptionstests)pnpm typecheckpasses@tsdown/cssinstalledresolveCssOptions(defaults, target inheritance, target override, comma-separated, array, false, custom options)🤖 Generated with Claude Code