bun-plugin-stx 0.2.10 → 0.2.11
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 +13 -11
- package/dist/{chunk-a3qganyh.js → chunk-5npmwyts.js} +17 -18
- package/dist/chunk-c60m6z2p.js +1287 -0
- package/dist/index.js +1 -1
- package/dist/preload.js +1 -2
- package/dist/serve.d.ts +1 -0
- package/dist/serve.js +400 -151
- package/dist/watch.d.ts +2 -1
- package/package.json +28 -2
- package/dist/chunk-fj6fej0j.js +0 -12771
package/dist/index.js
CHANGED
package/dist/preload.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
src_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5npmwyts.js";
|
|
5
5
|
import"./chunk-2mx7fq49.js";
|
|
6
6
|
|
|
7
7
|
// src/preload.ts
|
|
8
8
|
var {plugin } = globalThis.Bun;
|
|
9
9
|
plugin(src_default());
|
|
10
|
-
console.log("\u2705 stx plugin loaded - .stx files can now be imported");
|
package/dist/serve.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare interface ServeOptions {
|
|
|
9
9
|
componentsDir?: string
|
|
10
10
|
layoutsDir?: string
|
|
11
11
|
partialsDir?: string
|
|
12
|
+
publicDir?: string
|
|
12
13
|
quiet?: boolean
|
|
13
14
|
routes?: Record<string, (req: Request) => Response | Promise<Response>>
|
|
14
15
|
onRequest?: (req: Request) => Response | Promise<Response> | null | undefined
|