File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -190,6 +190,17 @@ interface ChatViewProps {
190190 threadId : ThreadId ;
191191}
192192
193+ function extendReplacementRangeForTrailingSpace (
194+ text : string ,
195+ rangeEnd : number ,
196+ replacement : string ,
197+ ) : number {
198+ if ( ! replacement . endsWith ( " " ) ) {
199+ return rangeEnd ;
200+ }
201+ return text [ rangeEnd ] === " " ? rangeEnd + 1 : rangeEnd ;
202+ }
203+
193204export default function ChatView ( { threadId } : ChatViewProps ) {
194205 const threads = useStore ( ( store ) => store . threads ) ;
195206 const projects = useStore ( ( store ) => store . projects ) ;
Original file line number Diff line number Diff line change 11import tailwindcss from "@tailwindcss/vite" ;
2- import react from "@vitejs/plugin-react" ;
2+ import babel from "@rolldown/plugin-babel" ;
3+ import react , { reactCompilerPreset } from "@vitejs/plugin-react" ;
34import { tanstackRouter } from "@tanstack/router-plugin/vite" ;
45import { defineConfig } from "vite" ;
56import pkg from "./package.json" with { type : "json" } ;
@@ -17,12 +18,9 @@ const buildSourcemap =
1718export default defineConfig ( {
1819 plugins : [
1920 tanstackRouter ( ) ,
20- react ( {
21- babel : {
22- // Keep React compiler parsing explicit for workspace files outside the app cwd.
23- parserOpts : { plugins : [ "typescript" , "jsx" ] } ,
24- plugins : [ "babel-plugin-react-compiler" ] ,
25- } ,
21+ react ( ) ,
22+ babel ( {
23+ presets : [ reactCompilerPreset ( ) ] ,
2624 } ) ,
2725 tailwindcss ( ) ,
2826 ] ,
You can’t perform that action at this time.
0 commit comments