Skip to content

chore(dashboard): convert vite config to TypeScript - #386

Merged
harshtandiya merged 2 commits into
mainfrom
backport-383-to-main
Aug 27, 2026
Merged

chore(dashboard): convert vite config to TypeScript#386
harshtandiya merged 2 commits into
mainfrom
backport-383-to-main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated backport of #383 to main.

* chore(dashboard): convert vite config to TypeScript
`tsconfig.json` included only `src/` and `tests/`, so the vite config was
checked by nothing. Renaming it and adding it to `include` puts it under
`yarn typecheck`.
The conversion needs `frappe-ui/vite` to have types, which it does not ship —
it is plain JavaScript with no declarations. The ambient declaration added here
covers only the options its plugins actually read, which is what makes this
worth doing: passing a key frappe-ui ignores is now a type error instead of
config that looks applied and is not. Re-adding the `target` key removed in the
previous commit fails typecheck with TS2353.
`tailwind.config.js` and `postcss.config.js` are still unchecked. They would
need `allowJs` or their own conversion, and neither is carrying dead config.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
* chore(dashboard): trim vite config comments
Drops the link-to-docs line and cuts the two optimizeDeps comments to the part
that is not recoverable from the code: why frappe-ui is excluded and why its
nested feather-icons is not.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
(cherry picked from commit fa49530)
@github-actionsgithub-actionsBot added backport This PR / Issue is a backport for a branch other than develop skip-demo Skip adding a video / screenshot in PR description. Passes the failing CI for demo addition labels Aug 27, 2026
Resolves the conflict with #384, which dropped the dead chunkSizeWarningLimit
and target keys from the build config now living in vite.config.ts.
@harshtandiya
harshtandiya merged commit d33da09 into mainAug 27, 2026
7 checks passed
@harshtandiya
harshtandiya deleted the backport-383-to-main branch August 27, 2026 12:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backportThis PR / Issue is a backport for a branch other than developskip-demoSkip adding a video / screenshot in PR description. Passes the failing CI for demo addition

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@harshtandiya@claude