vite-legacy-interop - v1.0.3
    Preparing search index...

    Interface LegacyInteropOptions

    Options for the legacyInterop plugin.

    interface LegacyInteropOptions {
        apply?: "build" | "serve";
        libs: (string | LibConfig)[];
        showLog?: boolean;
    }
    Index

    Properties

    Properties

    apply?: "build" | "serve"

    Controls whether the plugin runs during build, serve, or both.

    applies to both build and serve when omitted
    
    libs: (string | LibConfig)[]

    List of libraries to intercept. Each entry can be a package name string or a LibConfig object to customise the subfolder.

    libs: ['legacy-lib', { name: 'another-legacy-lib', libDir: 'dist' }]
    
    showLog?: boolean

    When true, logs each resolved import path to the console.

    false