adaptar-vite-plugin 1.0.2 → 1.0.3

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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { Plugin } from "vite";
2
1
  /**
3
2
  * Adaptar Vite Plugin
4
3
  *
@@ -11,4 +10,4 @@ import type { Plugin } from "vite";
11
10
  * 3. `hmr-interceptor` — intercepts Vite's internal WebSocket to surface
12
11
  * build/HMR errors as structured `adaptar:error` events.
13
12
  */
14
- export declare function adaptar(): Plugin;
13
+ export declare function adaptar(): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adaptar-vite-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Vite plugin for Adaptar preview error and selection bridging",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { Plugin } from "vite";
2
1
  import { interceptHmrErrors } from "./hmr-interceptor.js";
3
2
  import { buildHtmlTags } from "./html-tags.js";
4
3
 
@@ -14,7 +13,7 @@ import { buildHtmlTags } from "./html-tags.js";
14
13
  * 3. `hmr-interceptor` — intercepts Vite's internal WebSocket to surface
15
14
  * build/HMR errors as structured `adaptar:error` events.
16
15
  */
17
- export function adaptar(): Plugin {
16
+ export function adaptar(): any {
18
17
  return {
19
18
  name: "adaptar-vite-bridge",
20
19
  enforce: "pre",
@@ -34,7 +33,7 @@ export function adaptar(): Plugin {
34
33
  return buildHtmlTags();
35
34
  },
36
35
 
37
- configureServer(server) {
36
+ configureServer(server: any) {
38
37
  interceptHmrErrors(server);
39
38
  },
40
39
  };