Skip to content

fix: align example tsconfigs with TypeScript 7#478

Merged
chenjiahan merged 1 commit into
mainfrom
fix/ts7-compatible-configs
Jul 19, 2026
Merged

fix: align example tsconfigs with TypeScript 7#478
chenjiahan merged 1 commit into
mainfrom
fix/ts7-compatible-configs

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

The examples currently mix triple-slash references, implicit ambient types, and TypeScript options that are incompatible with the TypeScript 7 migration path. This aligns them with the current create-rsbuild conventions while keeping TypeScript 5.9 as the installed compiler.

  • declare Rsbuild ambient types through ["@rsbuild/core/types", "node"] and Rspack ambient types through ["@rspack/core/module", "node"]
  • remove redundant env reference files and Vue wildcard shims, and run Vue examples through vue-tsc
  • add package-local type dependencies and scoped asset or remote module declarations, then fix the source type errors surfaced by stricter checks
  • keep rspack/rspack-rsc/types/react-server-dom-rspack.d.ts unchanged pending confirmation from its maintainers

@chenjiahan
chenjiahan merged commit e1528b5 into main Jul 19, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the fix/ts7-compatible-configs branch July 19, 2026 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant