KC's Workspace
    Preparing search index...
    interface ServerDepsOptions {
        external?: (string | RegExp)[];
        fallbackCJS?: boolean;
        inline?: true | (string | RegExp)[];
    }
    Index

    Properties

    external?: (string | RegExp)[]

    Externalize means that Vite will bpass the package to native Node.

    Externalized dependencies will not be applied Vite's transformers and resolvers. And does not support HMR on reload.

    Typically, packages under node_modules are externalized.

    fallbackCJS?: boolean

    Try to guess the CJS version of a package when it's invalid ESM

    false
    
    inline?: true | (string | RegExp)[]

    Vite will process inlined modules.

    This could be helpful to handle packages that ship .js in ESM format (that Node can't handle).

    If true, every dependency will be inlined