You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code splitter does not support the method shorthand syntax #8623
While reviewing the usage of TSR in another project, I found out that method definitions in router properties were not being code-split by the Vite plugin.
This leads to code being unexpectedly bundled in the entry chunk.
The method syntax/method definitions in route definitions should be supported by the plugin's code splitting, just like other functions:
exportconstRoute=createFileRoute('/')({// function expressions workscomponent: function(){return<HomeComponent/>;},// arrow functions also workcomponent: ()=>{return<HomeComponent/>;},});
Activity