OptionalbundledOptionaldepsCalled by the module runner to retrieve information about the specified
module. Internally calls transformRequest and wraps the result in the
format that the module runner understands.
This method is not meant to be called manually.
Optionalimporter: stringOptionaloptions: FetchFunctionOptionsOptionaloptions: { previousInstance?: DevEnvironment; watcher?: FSWatcher }
OptionalpreviousInstance?: DevEnvironmentthe 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?: FSWatcherProtectedinvalidateWhen the dev server is restarted, the methods are called in the following order:
initcloselistenExperimental
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.
OptionalignoredId: string
Hot channel for this environment. If not provided or disabled, it will be a noop channel that does nothing.