Options for compiling entrypoints and import()s only when they are accessed.

Hierarchy

  • LazyCompilationOptions

Properties

backend?: ((compiler, callback) => void) | ((compiler) => Promise<BackendApi>) | LazyCompilationDefaultBackendOptions

Specifies the backend that should be used for handling client keep alive.

Type declaration

    • (compiler, callback): void
    • Parameters

      • compiler: Compiler
      • callback: ((err?, api?) => void)
          • (err?, api?): void
          • Parameters

            Returns void

      Returns void

Type declaration

entries?: boolean

Enable/disable lazy compilation for entries.

imports?: boolean

Enable/disable lazy compilation for import() modules.

test?: string | RegExp | ((module) => boolean)

Specify which entrypoints or import()ed modules should be lazily compiled. This is matched with the imported module and not the entrypoint name.

Type declaration

    • (module): boolean
    • Parameters

      Returns boolean

Generated using TypeDoc