UNPKG

vite-plugin-react-server

Version:
15 lines 745 B
import type { Plugin } from "vite"; /** * Vite plugin that aliases `react-server-dom-esm/*` imports to the vendored * copy shipped with this plugin. This eliminates the need for consumers to * install `react-server-dom-esm` separately or use patch-package. * * Browser client entries use true ESM files for Rollup tree-shaking. * Server/static entries are CJS and must be loadable via native Node import() * (not eval'd as ESM by Vite's module runner, which lacks require()). * * In dev mode, we ensure the vendored package is reachable from node_modules * so Vite's module runner can externalize and natively import() CJS entries. */ export declare function vitePluginVendorAlias(): Plugin; //# sourceMappingURL=vendor-alias.d.ts.map