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?: FSWatcherWhen the dev server is restarted, the methods are called in the following order:
initcloselistenOptionaloptions: TransformOptionsInternalExperimentalCalling 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.