List of library names to mark as external.
Each entry must match the package name exactly as it appears in import
statements. Subpath imports (lib/...) are always matched. Bare imports
(lib without a subpath) require matchBareImports.
Whitespace is trimmed and empty entries are ignored. At least one valid entry is required.
OptionalexcludeList of file extensions to exclude from pass-through.
Imports whose path ends with any of these extensions are ignored by the plugin and left for Vite to handle normally (e.g. CSS, assets).
Extensions must include the leading dot.
OptionalmatchAlso mark an exact, bare library import as external.
OptionalapplyControls when the plugin is applied.
'build' — only during vite build (default). Prevents the plugin from
interfering with dev tools that use Vite's dev server, such as Storybook.'serve' — only during vite dev / vite preview.OptionalshowWhen true, logs each resolved import path to the console.
Useful during development to verify which imports are being bypassed.
Options for the legacyPassThrough plugin.