@solidjs/vite-plugin 3.0.0-next.40 → 3.0.0-next.41

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.
@@ -237,4 +237,12 @@ export type ViteManifest = Record<string, {
237
237
  imports?: string[];
238
238
  }> & {
239
239
  _base?: string;
240
+ /**
241
+ * Manifest key of the client entry the document boots (the plugin's
242
+ * injected start-mode entry, or the single configured input). Absent when
243
+ * the plugin cannot tell the application entry apart from other configured
244
+ * inputs; its record is also serialized first so first-`isEntry` scans
245
+ * agree with it.
246
+ */
247
+ _entry?: string;
240
248
  };
@@ -250,4 +250,12 @@ export declare function startServe(options: StartOptions, internal?: {
250
250
  * declines HMR for that module's client compile (solidjs/solid#3151).
251
251
  */
252
252
  onDocumentResolved?: (documentPath: string | null) => void;
253
+ /**
254
+ * Reports the client entry this plugin adds to the client build's input
255
+ * (the virtual generated entry id, or the authored entry's absolute
256
+ * path) back to the main plugin, which stamps it as `_entry` on
257
+ * `virtual:solid-manifest` so the built handler and the runtime never
258
+ * have to guess the entry among other configured inputs (#353).
259
+ */
260
+ onClientEntryResolved?: (entryId: string) => void;
253
261
  }): Plugin[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/vite-plugin",
3
- "version": "3.0.0-next.40",
3
+ "version": "3.0.0-next.41",
4
4
  "description": "solid-js integration plugin for Vite",
5
5
  "type": "module",
6
6
  "engines": {