File tree Expand file tree Collapse file tree
rspack-basic-virtual-named-export-config-file-based/src/routes/posts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default defineConfig({
1010 include : / \. (?: j s x | t s x ) $ / ,
1111 } ) ,
1212 pluginVue ( ) ,
13- pluginVueJsx ( ) ,
13+ pluginVueJsx ( ) ,
1414 ] ,
1515 source : {
1616 define : {
Original file line number Diff line number Diff line change @@ -13,24 +13,25 @@ function PostsComponent() {
1313 return (
1414 < div class = "p-2 flex gap-2" >
1515 < ul class = "list-disc pl-4" >
16- { [ ...posts . value , { id : 'i-do-not-exist' , title : 'Non-existent Post' } ] . map (
17- ( post ) => {
18- return (
19- < li class = "whitespace-nowrap" >
20- < Link
21- to = "/posts/$postId"
22- params = { {
23- postId : post . id ,
24- } }
25- class = "block py-1 text-blue-600 hover:opacity-75"
26- activeProps = { { class : 'font-bold underline' } }
27- >
28- < div > { post . title . substring ( 0 , 20 ) } </ div >
29- </ Link >
30- </ li >
31- )
32- } ,
33- ) }
16+ { [
17+ ...posts . value ,
18+ { id : 'i-do-not-exist' , title : 'Non-existent Post' } ,
19+ ] . map ( ( post ) => {
20+ return (
21+ < li class = "whitespace-nowrap" >
22+ < Link
23+ to = "/posts/$postId"
24+ params = { {
25+ postId : post . id ,
26+ } }
27+ class = "block py-1 text-blue-600 hover:opacity-75"
28+ activeProps = { { class : 'font-bold underline' } }
29+ >
30+ < div > { post . title . substring ( 0 , 20 ) } </ div >
31+ </ Link >
32+ </ li >
33+ )
34+ } ) }
3435 </ ul >
3536 < hr />
3637 < Outlet />
Original file line number Diff line number Diff line change @@ -12,24 +12,25 @@ function PostsComponent() {
1212 return (
1313 < div class = "p-2 flex gap-2" >
1414 < ul class = "list-disc pl-4" >
15- { [ ...posts . value , { id : 'i-do-not-exist' , title : 'Non-existent Post' } ] . map (
16- ( post ) => {
17- return (
18- < li class = "whitespace-nowrap" >
19- < Link
20- to = "/posts/$postId"
21- params = { {
22- postId : post . id ,
23- } }
24- class = "block py-1 text-blue-600 hover:opacity-75"
25- activeProps = { { class : 'font-bold underline' } }
26- >
27- < div > { post . title . substring ( 0 , 20 ) } </ div >
28- </ Link >
29- </ li >
30- )
31- } ,
32- ) }
15+ { [
16+ ...posts . value ,
17+ { id : 'i-do-not-exist' , title : 'Non-existent Post' } ,
18+ ] . map ( ( post ) => {
19+ return (
20+ < li class = "whitespace-nowrap" >
21+ < Link
22+ to = "/posts/$postId"
23+ params = { {
24+ postId : post . id ,
25+ } }
26+ class = "block py-1 text-blue-600 hover:opacity-75"
27+ activeProps = { { class : 'font-bold underline' } }
28+ >
29+ < div > { post . title . substring ( 0 , 20 ) } </ div >
30+ </ Link >
31+ </ li >
32+ )
33+ } ) }
3334 </ ul >
3435 < hr />
3536 < Outlet />
You can’t perform that action at this time.
0 commit comments