bun-plugin-stx 0.2.171 → 0.2.172
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/serve.js +12 -10
- package/package.json +1 -1
package/dist/serve.js
CHANGED
|
@@ -10580,16 +10580,18 @@ ${trailingPageScripts.join(`
|
|
|
10580
10580
|
}
|
|
10581
10581
|
});
|
|
10582
10582
|
}
|
|
10583
|
-
|
|
10584
|
-
|
|
10585
|
-
|
|
10586
|
-
|
|
10587
|
-
|
|
10588
|
-
|
|
10589
|
-
|
|
10590
|
-
|
|
10591
|
-
|
|
10592
|
-
|
|
10583
|
+
if (!isStaticAssetPath(path)) {
|
|
10584
|
+
const contentWithExt = await getRoute(`${path}.html`, reqCtx);
|
|
10585
|
+
if (contentWithExt) {
|
|
10586
|
+
return new Response(injectHmrClient(contentWithExt), {
|
|
10587
|
+
status: reqCtx.responseStatus ?? 200,
|
|
10588
|
+
headers: {
|
|
10589
|
+
"Content-Type": "text/html; charset=utf-8",
|
|
10590
|
+
"Cache-Control": "no-store",
|
|
10591
|
+
...corsHeaders
|
|
10592
|
+
}
|
|
10593
|
+
});
|
|
10594
|
+
}
|
|
10593
10595
|
}
|
|
10594
10596
|
if (path.startsWith("/chunk-") || path.endsWith(".js") || path.endsWith(".css")) {
|
|
10595
10597
|
try {
|
package/package.json
CHANGED