bun-plugin-stx 0.2.408 → 0.2.409

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.
@@ -1523,6 +1523,9 @@ function routerSource() {
1523
1523
  // twice \u2014 leave the document without it. These are loaded once and stay,
1524
1524
  // the same as the external head scripts beside them.
1525
1525
  el.setAttribute('data-stx-external','');
1526
+ // In document order: a fragment's composables bundle reads the module
1527
+ // registry loaded beside it, and an inserted script is async by default.
1528
+ el.async=false;
1526
1529
  el.onload=function(){resolve()};
1527
1530
  el.onerror=function(){log('[router] container script failed:',key);resolve()};
1528
1531
  dhead().appendChild(el);
@@ -2202,10 +2205,10 @@ else {
2202
2205
  });
2203
2206
  var loopRoot=placeholder.previousSibling;
2204
2207
  while(loopRoot&&(
2205
- (loopRoot.nodeType===Node.TEXT_NODE&&!(loopRoot.textContent||'').trim())
2206
- ||loopRoot.nodeType===Node.COMMENT_NODE
2208
+ (loopRoot.nodeType===3&&!(loopRoot.textContent||'').trim())
2209
+ ||loopRoot.nodeType===8
2207
2210
  ))loopRoot=loopRoot.previousSibling;
2208
- if(loopRoot&&loopRoot.nodeType===Node.ELEMENT_NODE&&loopRoot.hasAttribute('data-stx-scope')
2211
+ if(loopRoot&&loopRoot.nodeType===1&&loopRoot.hasAttribute('data-stx-scope')
2209
2212
  &&(loopRoot.hasAttribute(':for')||loopRoot.hasAttribute('@for')||loopRoot.hasAttribute('x-for'))){
2210
2213
  var loopScopeId=loopRoot.getAttribute('data-stx-scope');
2211
2214
  scopedLoopSetup=!!loopScopeId&&code.indexOf(loopScopeId)!==-1;
package/dist/serve.js CHANGED
@@ -9825,7 +9825,7 @@ function __stxOverlay(errs){
9825
9825
  rebuildDiscoveredPagePaths(kept);
9826
9826
  await indexPageMiddleware(kept);
9827
9827
  try {
9828
- const { Router } = await import("./chunk-6svt7a27.js");
9828
+ const { Router } = await import("./chunk-51r5j16q.js");
9829
9829
  const pagesDirs = patterns.map((p) => p.replace(/\/$/, "")).filter(Boolean);
9830
9830
  const router = new Router(process19.cwd(), { pagesDirs, stateDir: stateDirName(), exclude: options.exclude });
9831
9831
  if (!options.quiet)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bun-plugin-stx",
3
3
  "type": "module",
4
- "version": "0.2.408",
4
+ "version": "0.2.409",
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",
@@ -74,7 +74,7 @@
74
74
  "typecheck": "bun tsc --noEmit"
75
75
  },
76
76
  "dependencies": {
77
- "@stacksjs/stx": "0.2.408",
78
- "stx-router": "0.2.408"
77
+ "@stacksjs/stx": "0.2.409",
78
+ "stx-router": "0.2.409"
79
79
  }
80
80
  }