Which project does this relate to?
Router
Describe the bug
After saving, the line ending is changed from 'lf' to 'crlf', with trailing ^M on each line.
Your Example Website or App
https://github.com/TanStack/router/tree/main/examples/react/basic-file-based
Steps to Reproduce the Bug or Issue
- Start
pnpm dev.
- Change indentation of
); line to tab:
import { createFileRoute } from '@tanstack/react-router';
export const Route = createFileRoute({
component: App,
});
function App() {
return (
<>
<p>Hello, world!</p>
</>
); // This line
}
- Remove the
('/'), or rename the file.
- Reload the file.
Expected behavior
It should just update ('/').
Screenshots or Videos
No response
Platform
- Router / Start Version: 1.168.18
- OS: Windows
- Bundler: Vite
- Bundler Version: 8.0.8
Additional context
This doesn't occur if you remove the ; from the tab indented line.
Which project does this relate to?
Router
Describe the bug
After saving, the line ending is changed from 'lf' to 'crlf', with trailing
^Mon each line.Your Example Website or App
https://github.com/TanStack/router/tree/main/examples/react/basic-file-based
Steps to Reproduce the Bug or Issue
pnpm dev.);line to tab:('/'), or rename the file.Expected behavior
It should just update
('/').Screenshots or Videos
No response
Platform
Additional context
This doesn't occur if you remove the
;from the tab indented line.