next-csrf
Version:
CSRF mitigation library for Next.js
10 lines (9 loc) • 365 B
TypeScript
import { Compiler } from 'webpack';
/**
* Makes sure there are no dynamic chunks when the target is serverless
* The dynamic chunks are integrated back into their parent chunk
* This is to make sure there is a single render bundle instead of that bundle importing dynamic chunks
*/
export declare class ServerlessPlugin {
apply(compiler: Compiler): void;
}