fully-react
Version:
React Server for Vite
14 lines (11 loc) • 555 B
TypeScript
import { ModuleMap } from 'react-server-dom-webpack/server.edge';
declare function setupWebpackEnv(load?: (chunk: string) => Promise<any>): {
load: (chunk: string) => Promise<any>;
};
/**
* This is another hack to make vite dev server work with react-server-dom-webpack.
* We use a proxy during dev in order to make the bundler config look like the one that
* react-server-dom-webpack expects at build time.
*/
declare function createModuleMapProxy(resolve?: (id: string) => string): ModuleMap;
export { createModuleMapProxy, setupWebpackEnv };