UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

12 lines (11 loc) 499 B
import type { Plugin } from "vite"; /** * Plugin that performs initialization workarounds that must run before * the Cloudflare plugin's `configureServer` hook executes. * * Cloudflare plugin v1.15.0 executes the worker entry file during * `configureServer` to detect exports, which triggers SSR code evaluation * before normal server initialization completes. This plugin ensures * required systems are initialized beforehand. */ export declare const cloudflarePreInitPlugin: () => Plugin;