KC's Workspace
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    depsOptimizer?: DepsOptimizer

    Hot channel for this environment. If not provided or disabled, it will be a noop channel that does nothing.

    environment.hot.send({ type: 'full-reload' })
    
    logger: Logger
    mode: "dev"
    name: string

    Accessors

    • get plugins(): readonly Plugin<any>[]

      Returns readonly Plugin<any>[]

    Methods

    • Returns Promise<void>

    • Parameters

      Returns Promise<FetchResult>

    • Parameters

      • Optionaloptions: { previousInstance?: DevEnvironment; watcher?: FSWatcher }
        • OptionalpreviousInstance?: DevEnvironment

          the previous instance used for the environment with the same name

          when using, the consumer should check if it's an instance generated from the same class or factory function

        • Optionalwatcher?: FSWatcher

      Returns Promise<void>

    • Parameters

      Returns void

    • When the dev server is restarted, the methods are called in the following order:

      • new instance init
      • previous instance close
      • new instance listen

      Parameters

      Returns Promise<void>

    • Parameters

      Returns Promise<void>

    • Experimental

      Calling await environment.waitForRequestsIdle(id) will wait until all static imports are processed after the first transformRequest call. If called from a load or transform plugin hook, the id needs to be passed as a parameter to avoid deadlocks. Calling this function after the first static imports section of the module graph has been processed will resolve immediately.

      Parameters

      • OptionalignoredId: string

      Returns Promise<void>

    • Parameters

      • url: string

      Returns Promise<void>