@moostjs/vite 0.5.20 → 0.5.22
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/LICENSE +21 -0
- package/dist/index.cjs +354 -294
- package/dist/index.d.ts +4 -7
- package/dist/index.mjs +331 -293
- package/package.json +14 -7
package/dist/index.d.ts
CHANGED
|
@@ -7,15 +7,12 @@ interface TMoostViteDevOptions {
|
|
|
7
7
|
outDir?: string;
|
|
8
8
|
format?: 'cjs' | 'esm';
|
|
9
9
|
sourcemap?: boolean;
|
|
10
|
+
externals?: {
|
|
11
|
+
node?: boolean;
|
|
12
|
+
workspace?: boolean;
|
|
13
|
+
} | boolean;
|
|
10
14
|
onEject?: (instance: object, dependency: Function) => boolean;
|
|
11
15
|
}
|
|
12
|
-
/**
|
|
13
|
-
* The main Vite plugin that:
|
|
14
|
-
* - Detects when moost adapter usage (http, cli, wf).
|
|
15
|
-
* - Patches `MoostHttp.prototype.listen` in dev mode to register a custom middleware instead of listening on a port.
|
|
16
|
-
* - Injects a `__VITE_ID()` decorator into exported classes to track them for hot reload cleanup.
|
|
17
|
-
* - Cleans up internal Moost state upon hot updates, then reloads the SSR entry.
|
|
18
|
-
*/
|
|
19
16
|
declare function moostVite(options: TMoostViteDevOptions): Plugin;
|
|
20
17
|
|
|
21
18
|
export { moostVite };
|