fix(element): Enable SPA fallback in element dev server

This commit is contained in:
2025-12-08 12:31:38 +00:00
parent ec268802ca
commit 660a480317
3 changed files with 8 additions and 1 deletions

View File

@@ -1,5 +1,11 @@
# Changelog # Changelog
## 2025-12-08 - 2.3.1 - fix(element)
Enable SPA fallback in element dev server
- Add spaFallback: true to the TypedServer configuration used in element mode.
- Improves developer experience for single-page apps by serving the index file for unknown routes during development and supporting client-side routing.
## 2025-12-08 - 2.3.0 - feat(typedserver) ## 2025-12-08 - 2.3.0 - feat(typedserver)
Enable compression for element development server and update @api.global/typedserver dependency Enable compression for element development server and update @api.global/typedserver dependency

View File

@@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@git.zone/tswatch', name: '@git.zone/tswatch',
version: '2.3.0', version: '2.3.1',
description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.' description: 'A development tool for automatically watching and re-compiling TypeScript projects upon detecting file changes, enhancing developer workflows.'
} }

View File

@@ -72,6 +72,7 @@ export class TsWatch {
serveDir: plugins.path.join(paths.cwd, './dist_watch/'), serveDir: plugins.path.join(paths.cwd, './dist_watch/'),
port: 3002, port: 3002,
compression: true, compression: true,
spaFallback: true,
}); });
const bundleAndReloadElement = async () => { const bundleAndReloadElement = async () => {