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
7 changes: 6 additions & 1 deletion flow-server/src/main/resources/vite.generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,12 @@ export const vaadinConfig: UserConfigFn = (env) => {
// exposes the compiler API to Node, so the checker falls back to
// running tsc as a separate process and resolves the config
// strictly against this root without searching parent folders.
root: __dirname
// The root is relative because the checker passes it to tsc as
// "-p <root>" in a command line that is split on spaces, which
// would break for a project directory containing a space. Vite is
// always spawned with the project root as its working directory,
// which is this directory, so "." resolves to the same tsconfig.
root: '.'
}
}),
productionMode && visualizer({ brotliSize: true, filename: bundleSizeFile })
Expand Down
Loading