@cloudflare/vite-plugin 1.5.1 → 1.7.0

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.
@@ -6021,7 +6021,7 @@ var CustomAssetWorker = class extends worker_default {
6021
6021
  }
6022
6022
  async unstable_getByETag(eTag) {
6023
6023
  const url = new URL(eTag, UNKNOWN_HOST);
6024
- const response = await this.env.__VITE_FETCH_ASSET__.fetch(url);
6024
+ const response = await this.env.__VITE_FETCH_HTML__.fetch(url);
6025
6025
  if (!response.body) {
6026
6026
  throw new Error(`Unexpected error. No HTML found for "${eTag}".`);
6027
6027
  }
@@ -6033,9 +6033,8 @@ var CustomAssetWorker = class extends worker_default {
6033
6033
  }
6034
6034
  async unstable_exists(pathname) {
6035
6035
  const url = new URL(pathname.replace(/^\/{2,}/, "/"), UNKNOWN_HOST);
6036
- const response = await this.env.__VITE_ASSET_EXISTS__.fetch(url);
6037
- const exists = await response.json();
6038
- return exists ? pathname : null;
6036
+ const response = await this.env.__VITE_HTML_EXISTS__.fetch(url);
6037
+ return response.json();
6039
6038
  }
6040
6039
  async unstable_canFetch(request) {
6041
6040
  const secFetchMode = request.headers.get("X-Mf-Sec-Fetch-Mode");