@cloudflare/vite-plugin 0.0.0-a7bd79bf4 → 0.0.0-a9190de13

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.
@@ -1985,7 +1985,7 @@ var we = class {
1985
1985
  this.hasWritten || this.readyAnalytics && (this.hasWritten = true, this.readyAnalytics.logEvent({ version: 1, accountId: this.data.accountId, indexId: this.data.scriptId?.toString(), doubles: [this.data.requestTime ?? -1, this.data.coloId ?? -1, this.data.metalId ?? -1, this.data.coloTier ?? -1, this.data.userWorkerAhead === void 0 ? -1 : Number(this.data.userWorkerAhead)], blobs: [this.data.hostname?.substring(0, 256), this.data.dispatchtype, this.data.error?.substring(0, 256), this.data.version, this.data.coloRegion] }));
1986
1986
  }
1987
1987
  };
1988
- var On = (t4) => ({ invoke_user_worker_ahead_of_assets: t4?.invoke_user_worker_ahead_of_assets ?? false, has_user_worker: t4?.has_user_worker ?? false, account_id: t4?.account_id ?? -1, script_id: t4?.script_id ?? -1 });
1988
+ var On = (t4) => ({ invoke_user_worker_ahead_of_assets: t4?.invoke_user_worker_ahead_of_assets ?? false, has_user_worker: t4?.has_user_worker ?? false, account_id: t4?.account_id ?? -1, script_id: t4?.script_id ?? -1, debug: t4?.debug ?? false });
1989
1989
  var Bc = { async fetch(t4, e, n) {
1990
1990
  let r, o = false, s = new we(e.ANALYTICS), i = new ue(e.UNSAFE_PERFORMANCE), a = i.now();
1991
1991
  try {
package/dist/index.d.ts CHANGED
@@ -17,6 +17,11 @@ interface AuxiliaryWorkerConfig extends BaseWorkerConfig {
17
17
  interface PluginConfig extends EntryWorkerConfig {
18
18
  auxiliaryWorkers?: AuxiliaryWorkerConfig[];
19
19
  persistState?: PersistState;
20
+ inspectorPort?: number | false;
21
+ experimental?: {
22
+ /** Experimental support for handling the _headers and _redirects files during Vite dev mode. */
23
+ headersAndRedirectsDevModeSupport?: boolean;
24
+ };
20
25
  }
21
26
 
22
27
  /**
@@ -28,4 +33,4 @@ interface PluginConfig extends EntryWorkerConfig {
28
33
  */
29
34
  declare function cloudflare(pluginConfig?: PluginConfig): vite.Plugin[];
30
35
 
31
- export { cloudflare };
36
+ export { type PluginConfig, cloudflare };