KC's Workspace
    Preparing search index...
    interface ResolvedSSROptions {
        external?: true | string[];
        noExternal?: string | true | RegExp | (string | RegExp)[];
        optimizeDeps: DepOptimizationConfig;
        resolve?: {
            conditions?: string[];
            externalConditions?: string[];
            mainFields?: string[];
        };
        target: SSRTarget;
    }

    Hierarchy (View Summary)

    Index

    Properties

    external?: true | string[]
    noExternal?: string | true | RegExp | (string | RegExp)[]
    optimizeDeps: DepOptimizationConfig

    Control over which dependencies are optimized during SSR and esbuild options During build: no external CJS dependencies are optimized by default During dev: explicit no external CJS dependencies are optimized by default

    resolve?: {
        conditions?: string[];
        externalConditions?: string[];
        mainFields?: string[];
    }

    Type Declaration

    • Optionalconditions?: string[]

      Conditions that are used in the plugin pipeline. The default value is the root config's resolve.conditions.

      Use this to override the default ssr conditions for the ssr build.

      rootConfig.resolve.conditions
      
    • OptionalexternalConditions?: string[]

      Conditions that are used during ssr import (including ssrLoadModule) of externalized dependencies.

      ['node', 'module-sync']
      
    • OptionalmainFields?: string[]
    target: SSRTarget

    Define the target for the ssr build. The browser field in package.json is ignored for node but used if webworker is the target This option will be removed in a future major version

    'node'