interface TransformModePatterns {
    ssr?: string[];
    web?: string[];
}

Properties

Properties

ssr?: string[]

Use SSR transform pipeline for all modules inside specified tests. Vite plugins will receive ssr: true flag when processing those files.

Default

tests with node or edge environment
web?: string[]

First do a normal transform pipeline (targeting browser), then then do a SSR rewrite to run the code in Node. Vite plugins will receive ssr: false flag when processing those files.

Default

tests with jsdom or happy-dom environment

Generated using TypeDoc