File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
test-apps/react-router-vite/app/routes Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -370,7 +370,7 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
370370 }
371371
372372 const column = line . indexOf ( "console." )
373- const logMessage = `'${ chalk . magenta ( "LOG" ) } ${ chalk . blueBright ( `http://localhost:${ port } /open-source?source=${ id . replace ( normalizePath ( process . cwd ( ) ) , "" ) } &line=${ lineNumber + 1 } &column=${ column + 1 } ` ) } \\n → '`
373+ const logMessage = `'${ chalk . magenta ( "LOG" ) } ${ chalk . blueBright ( `http://localhost:${ port } /open-source?source=${ encodeURIComponent ( id . replace ( normalizePath ( process . cwd ( ) ) , "" ) ) } &line=${ lineNumber + 1 } &column=${ column + 1 } ` ) } \\n → '`
374374 if ( line . includes ( "console.log(" ) ) {
375375 const newLine = `console.log(${ logMessage } ,`
376376 return line . replace ( "console.log(" , newLine )
Original file line number Diff line number Diff line change 1+ export default function Index ( ) {
2+ console . log ( "Epic test" )
3+ return < div >
4+ Epic test
5+ </ div >
6+ }
You can’t perform that action at this time.
0 commit comments