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.
Files changed (2) hide show
  1. package/dist/serve.js +12 -10
  2. package/package.json +1 -1
package/dist/serve.js CHANGED
@@ -10580,16 +10580,18 @@ ${trailingPageScripts.join(`
10580
10580
  }
10581
10581
  });
10582
10582
  }
10583
- const contentWithExt = await getRoute(`${path}.html`, reqCtx);
10584
- if (contentWithExt) {
10585
- return new Response(injectHmrClient(contentWithExt), {
10586
- status: reqCtx.responseStatus ?? 200,
10587
- headers: {
10588
- "Content-Type": "text/html; charset=utf-8",
10589
- "Cache-Control": "no-store",
10590
- ...corsHeaders
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-stx",
3
3
  "type": "module",
4
- "version": "0.2.171",
4
+ "version": "0.2.172",
5
5
  "description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",
7
7
  "license": "MIT",