index.d.ts 553 B

123456789101112131415
  1. import type { Compiler } from 'webpack';
  2. declare const ALL = "all";
  3. declare const STATIC = "static";
  4. declare const DYNAMIC = "dynamic";
  5. declare type AvailableModules = typeof ALL | typeof STATIC | typeof DYNAMIC;
  6. declare class VirtualModulesPlugin {
  7. private _staticModules;
  8. private _compiler;
  9. private _watcher;
  10. constructor(modules?: Record<string, string>);
  11. getModuleList(filter?: AvailableModules): {};
  12. writeModule(filePath: string, contents: string): void;
  13. apply(compiler: Compiler): void;
  14. }
  15. export = VirtualModulesPlugin;