@cloudflare/vite-plugin 0.0.0-e2f5756c2 → 0.0.0-e55f489db
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/README.md +18 -448
- package/dist/asset-workers/asset-worker.js +1646 -1737
- package/dist/asset-workers/router-worker.js +1286 -1584
- package/dist/index.d.ts +14 -2
- package/dist/index.js +13161 -639
- package/dist/runner-worker/index.js +81 -40
- package/package.json +27 -16
package/dist/index.d.ts
CHANGED
|
@@ -17,8 +17,20 @@ 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
|
+
* Vite plugin that enables a full-featured integration between Vite and the Cloudflare Workers runtime.
|
|
29
|
+
*
|
|
30
|
+
* See the [README](https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#readme) for more details.
|
|
31
|
+
*
|
|
32
|
+
* @param pluginConfig An optional {@link PluginConfig} object.
|
|
33
|
+
*/
|
|
34
|
+
declare function cloudflare(pluginConfig?: PluginConfig): vite.Plugin[];
|
|
23
35
|
|
|
24
|
-
export { cloudflare };
|
|
36
|
+
export { type PluginConfig, cloudflare };
|