@cloudflare/vite-plugin 0.0.0-229d00fce

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.
@@ -0,0 +1,31 @@
1
+ import * as vite from 'vite';
2
+
3
+ type PersistState = boolean | {
4
+ path: string;
5
+ };
6
+ interface BaseWorkerConfig {
7
+ viteEnvironment?: {
8
+ name?: string;
9
+ };
10
+ }
11
+ interface EntryWorkerConfig extends BaseWorkerConfig {
12
+ configPath?: string;
13
+ }
14
+ interface AuxiliaryWorkerConfig extends BaseWorkerConfig {
15
+ configPath: string;
16
+ }
17
+ interface PluginConfig extends EntryWorkerConfig {
18
+ auxiliaryWorkers?: AuxiliaryWorkerConfig[];
19
+ persistState?: PersistState;
20
+ }
21
+
22
+ /**
23
+ * Vite plugin that enables a full-featured integration between Vite and the Cloudflare Workers runtime.
24
+ *
25
+ * See the [README](https://github.com/cloudflare/workers-sdk/tree/main/packages/vite-plugin-cloudflare#readme) for more details.
26
+ *
27
+ * @param pluginConfig An optional {@link PluginConfig} object.
28
+ */
29
+ declare function cloudflare(pluginConfig?: PluginConfig): vite.Plugin;
30
+
31
+ export { cloudflare };