@ozsarman/clarityjs 0.6.0 → 0.6.1
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/package.json +1 -1
- package/src/isr.js +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ozsarman/clarityjs",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "An AI-native, permission-aware frontend framework and DSL — components declare what AI agents may read, act on, and never touch.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
package/src/isr.js
CHANGED
|
@@ -211,7 +211,12 @@ export function createISRMiddleware(opts = {}) {
|
|
|
211
211
|
log(`miss → SSR ile üretiliyor: ${urlPath}`);
|
|
212
212
|
try {
|
|
213
213
|
const { renderToDocument } = await import('./ssr.js');
|
|
214
|
-
|
|
214
|
+
// Resolved at runtime (Node/server only). Kept non-static so bundlers
|
|
215
|
+
// (Vite/esbuild) don't try to resolve this optional server-side router
|
|
216
|
+
// when an app merely imports the package. Falls through to next(err) if
|
|
217
|
+
// unavailable in the current install.
|
|
218
|
+
const _fileRouterPath = '../packages/clarity-ssr/file-router.js';
|
|
219
|
+
const { FileRouter } = await import(/* @vite-ignore */ _fileRouterPath);
|
|
215
220
|
|
|
216
221
|
const router = new FileRouter(resolve(pagesDir));
|
|
217
222
|
await router.scan();
|