Skip to content

Commit af97490

Browse files
Copilotstipsan
andcommitted
Add changeset for tsdown migration
Added comprehensive changeset documenting: - Breaking changes (dts option removal, config restructuring) - New features (reactCompiler, tsdown.tsgo) - Performance improvements (~2x faster builds) - Dependency changes Co-authored-by: stipsan <[email protected]>
1 parent edcf3cc commit af97490

File tree

2 files changed

+155
-0
lines changed

2 files changed

+155
-0
lines changed

.changeset/tsdown-migration.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
"@sanity/pkg-utils": major
3+
---
4+
5+
Migrate from rollup/rolldown to tsdown for bundling
6+
7+
## Breaking Changes
8+
9+
- Removes `dts: 'api-extractor'` and `dts: 'rolldown'` config options - tsdown handles DTS automatically
10+
- Removes `rollup` configuration object from config types
11+
- Moves `babel.reactCompiler` to top-level `reactCompiler` option
12+
- Moves `tsgo` option to `tsdown.tsgo`
13+
14+
## Features
15+
16+
- Added `reactCompiler: boolean | {target: '18' | '19'}` config option for React Compiler support
17+
- Added `tsdown.tsgo` option for native TypeScript preview via `@typescript/native-preview`
18+
- Implemented React Compiler using `@rollup/plugin-babel` as recommended by tsdown
19+
- Replaced esbuild-based export validation with publint
20+
- Consolidated JS and DTS generation under tsdown
21+
- Retained api-extractor for TSDoc validation
22+
23+
## Performance
24+
25+
- Faster builds (~421ms vs previous ~800ms for pkg-utils)
26+
- Simplified codebase (removed ~1200 lines of rollup/rolldown code)
27+
28+
## Dependencies
29+
30+
- **Added**: `[email protected]`, `publint@^0.3.15`, `@babel/preset-react@^7.28.5`
31+
- **Removed**: `rollup`, `rolldown`, `rolldown-plugin-dts`, `esbuild`, `browserslist-to-esbuild`, and rollup plugins (except `@rollup/plugin-babel` for React Compiler)

pnpm-lock.yaml

Lines changed: 124 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)