Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions packages/devframe/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ const deps = {
'terser',
'@jridgewell/trace-mapping',
],
// `whenexpr` is runtime-only bundled (see `onlyBundle` below); its
// declaration file mixes type-only and value named exports
// (`export { type WhenExpression, evaluateWhen, ... }`) in a way that
// trips up rolldown's dts bundler when it tries to inline the type
// graph too (spuriously drops the `type` modifier off the merged
// re-export, then can't find `WhenExpression` as a value export). Leave
// `whenexpr`'s types external and let dts consumers resolve them
// straight from the published package.
dts: {
neverBundle: ['whenexpr'],
},
onlyBundle: [
'acorn',
'bundle-name',
Expand Down
Loading