create-ereo 0.2.26 → 0.2.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +19 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1113,7 +1113,25 @@ export default function RootLayout({ children }${ts ? ": RootLayoutProps" : ""})
|
|
|
1113
1113
|
}
|
|
1114
1114
|
`.trim();
|
|
1115
1115
|
await Bun.write(join(projectDir, `app/routes/_layout.${ext}`), rootLayout);
|
|
1116
|
-
const clientEntry = `
|
|
1116
|
+
const clientEntry = trace ? `
|
|
1117
|
+
/**
|
|
1118
|
+
* Client Entry Point
|
|
1119
|
+
*
|
|
1120
|
+
* This file initializes the client-side runtime:
|
|
1121
|
+
* - Hydrates island components marked with 'use client'
|
|
1122
|
+
* - Sets up client-side navigation
|
|
1123
|
+
* - Enables link prefetching
|
|
1124
|
+
* - Enables client-side tracing (sends spans to the server)
|
|
1125
|
+
*/
|
|
1126
|
+
import { initClient } from '@ereo/client';
|
|
1127
|
+
import { initClientTracing } from '@ereo/trace/client';
|
|
1128
|
+
|
|
1129
|
+
// Initialize the EreoJS client runtime
|
|
1130
|
+
initClient();
|
|
1131
|
+
|
|
1132
|
+
// Initialize client-side tracing
|
|
1133
|
+
initClientTracing();
|
|
1134
|
+
`.trim() : `
|
|
1117
1135
|
/**
|
|
1118
1136
|
* Client Entry Point
|
|
1119
1137
|
*
|