KC's Workspace
    Preparing search index...
    interface DevEnvironmentOptions {
        createEnvironment?: (
            name: string,
            config: ResolvedConfig,
            context: CreateDevEnvironmentContext,
        ) => DevEnvironment | Promise<DevEnvironment>;
        moduleRunnerTransform?: boolean;
        preTransformRequests?: boolean;
        recoverable?: boolean;
        sourcemap?: boolean | { css?: boolean; js?: boolean };
        sourcemapIgnoreList?:
            | false
            | ((sourcePath: string, sourcemapPath: string) => boolean);
        warmup?: string[];
    }
    Index

    Properties

    createEnvironment?: (
        name: string,
        config: ResolvedConfig,
        context: CreateDevEnvironmentContext,
    ) => DevEnvironment | Promise<DevEnvironment>

    create the Dev Environment instance

    moduleRunnerTransform?: boolean

    For environments associated with a module runner. By default, it is false for the client environment and true for non-client environments. This option can also be used instead of the removed config.experimental.skipSsrTransform.

    preTransformRequests?: boolean

    Pre-transform known direct imports defaults to true for the client environment, false for the rest

    recoverable?: boolean

    For environments that support a full-reload, like the client, we can short-circuit when restarting the server throwing early to stop processing current files. We avoided this for SSR requests. Maybe this is no longer needed.

    sourcemap?: boolean | { css?: boolean; js?: boolean }

    Enables sourcemaps during dev

    { js: true }
    @experimental
    sourcemapIgnoreList?:
        | false
        | ((sourcePath: string, sourcemapPath: string) => boolean)

    Whether or not to ignore-list source files in the dev server sourcemap, used to populate the x_google_ignoreList source map extension.

    By default, it excludes all paths containing node_modules. You can pass false to disable this behavior, or, for full control, a function that takes the source path and sourcemap path and returns whether to ignore the source path.

    warmup?: string[]

    Files to be pre-transformed. Supports glob patterns.