Skip to content

Commit b877c19

Browse files
committed
publish 1.2.16
1 parent 3dfc7fd commit b877c19

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idrinth/react-file-based-routes",
3-
"version": "1.2.15",
3+
"version": "1.2.16",
44
"repository": "https://github.com/idrinth/react-file-based-routes",
55
"description": "A simple file based routing library, that does not force itself on you.",
66
"license": "MIT",

src/tsx-writer.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,8 @@ export default class TsxWriter implements Writer {
1212
{
1313
this.items.push(` (() => {
1414
const LazyElement = buildLazyElement(OfflineLoader, RefreshLoader, import('./pages/${path}/index.tsx',),);
15-
return {
16-
path: '${url}',
17-
exact: true,
18-
element: <Suspense fallback={<Loader/>}><LazyElement/></Suspense>,
19-
};
20-
})(),`
15+
return buildRoute(LazyElement, Loader, '${ url }');;
16+
})(),`
2117
);
2218
}
2319
toString(): string {

0 commit comments

Comments
 (0)