react-torch
Version:
A lib to server-side render with react.
13 lines (12 loc) • 441 B
TypeScript
import { HttpMiddleware } from 'farrow-http';
import type { Compiler, Stats } from 'webpack';
export declare type Assets = {
index: string;
vendor: string;
} & Record<string, string>;
export declare type WebpackDevContextType = {
assets: Assets | null;
stats: Stats | null;
};
export declare const useDevContext: () => WebpackDevContextType;
export declare const webpackDevMiddleware: (compiler: Compiler) => HttpMiddleware;