Skip to content

Interface: Options ​

Options for the dts_complex Vite plugin.

Properties ​

PropertyTypeDescription
bundledDependencies?(string | RegExp)[]An array of package names or regular expressions representing dependencies that should be bundled into the generated declaration files.
debug?booleanActivate additional debug output information
internalImports?"relative" | "subpath"Controls how references to declarations emitted by this package are written. relative preserves the legacy extensionless relative paths; subpath uses package-private imports. Default 'relative'
nodeModulesPath?stringThe path to the node_modules directory. Defaults to the project's root node_modules directory. Can be an absolute path or a path relative to the project root.
packageJsonPath?stringThe path to the package.json file. Can be an absolute path or a path relative to the project root.
preRolledDependencies?(string | RegExp)[]An array of package names or regular expressions representing dependencies that should be bundled into the generated declaration files, but which do not need to be rolled up into a single declaration file. If the dependency is not already included in bundledDependencies, it will be treated as if it were.
subpathPrefix?stringPackage-private import prefix used when internalImports is subpath. It must start with #, not end in /, and not contain *. Default '#types'
traceResolution?booleanTrace Typescript Resolution
tsConfigJsonPath?stringThe path to the tsconfig.json file to use for generating declaration files. Defaults to the project's root tsconfig.json. Can be an absolute path or a path relative to the project root.