build-manifest-plugin.d.ts 755 B

1234567891011121314151617181920
  1. import type { CustomRoutes } from '../../../lib/load-custom-routes';
  2. import { webpack } from 'next/dist/compiled/webpack/webpack';
  3. export declare type ClientBuildManifest = Record<string, string[]>;
  4. export declare function getEntrypointFiles(entrypoint: any): string[];
  5. export default class BuildManifestPlugin {
  6. private buildId;
  7. private rewrites;
  8. private isDevFallback;
  9. private exportRuntime;
  10. private appDirEnabled;
  11. constructor(options: {
  12. buildId: string;
  13. rewrites: CustomRoutes['rewrites'];
  14. isDevFallback?: boolean;
  15. exportRuntime?: boolean;
  16. appDirEnabled: boolean;
  17. });
  18. createAssets(compiler: any, compilation: any, assets: any): any;
  19. apply(compiler: webpack.Compiler): void;
  20. }