bun-plugin-stx 0.2.733 → 0.2.735
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/README.md +8 -0
- package/dist/serve.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -47,6 +47,14 @@ await build({
|
|
|
47
47
|
})
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
## Development component roots
|
|
51
|
+
|
|
52
|
+
The development server watches `additionalComponentsDirs` automatically, just
|
|
53
|
+
like `componentsDir`, whether configured in `stx.config.ts` or passed to
|
|
54
|
+
`serve()`. Component edits invalidate rendered output and send a fragment HMR
|
|
55
|
+
update. These roots do not need a duplicate `watchDirs` entry. Missing roots
|
|
56
|
+
are tolerated; resolution order and app overrides are unchanged.
|
|
57
|
+
|
|
50
58
|
## Usage with ESM
|
|
51
59
|
|
|
52
60
|
### 1. Configure Bun to use the plugin
|
package/dist/serve.js
CHANGED
|
@@ -9847,6 +9847,7 @@ function __stxOverlay(errs){
|
|
|
9847
9847
|
const composableDirs = stxConfig.composablesDir ? [nodePath.resolve(stxConfig.root || ".", stxConfig.composablesDir)] : ["composables", "functions"].map((d) => nodePath.resolve(stxConfig.root || ".", d));
|
|
9848
9848
|
for (const dir of [
|
|
9849
9849
|
componentsDir,
|
|
9850
|
+
...additionalComponentsDirs ?? [],
|
|
9850
9851
|
layoutsDir,
|
|
9851
9852
|
partialsDir,
|
|
9852
9853
|
publicDir,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-plugin-stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.735",
|
|
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.
|
|
78
|
-
"stx-router": "0.2.
|
|
77
|
+
"@stacksjs/stx": "0.2.735",
|
|
78
|
+
"stx-router": "0.2.735"
|
|
79
79
|
}
|
|
80
80
|
}
|