Interface: DepsConfig
Defined in: src/features/deps.ts:31
Properties
alwaysBundle?
optional alwaysBundle?:
| Arrayable<string | RegExp>
| NoExternalFn;Defined in: src/features/deps.ts:41
Force dependencies to be bundled, even if they are in dependencies, peerDependencies, or optionalDependencies.
dts?
optional dts?: Pick<DepsConfig, "alwaysBundle" | "neverBundle">;Defined in: src/features/deps.ts:86
Override dependency bundling options for declaration file generation.
neverBundle?
optional neverBundle?: string | RegExp | (string | RegExp)[] | ExternalOptionFunction;Defined in: src/features/deps.ts:37
Mark dependencies as external (not bundled). Accepts strings, regular expressions, or Rolldown's ExternalOption.
onlyAllowBundle?
optional onlyAllowBundle?: false | Arrayable<string | RegExp>;Defined in: src/features/deps.ts:66
Deprecated
Use onlyBundle instead.
onlyBundle?
optional onlyBundle?: false | Arrayable<string | RegExp>;Defined in: src/features/deps.ts:51
Whitelist of dependencies allowed to be bundled from node_modules. Throws an error if any unlisted dependency is bundled.
undefined(default): Show warnings for bundled dependencies.false: Suppress all warnings about bundled dependencies.
Note: Be sure to include all required sub-dependencies as well.
onlyImport?
optional onlyImport?: Arrayable<string | RegExp>;Defined in: src/features/deps.ts:62
Whitelist of packages that the emitted output is allowed to import. Matched against the package name, so subpath imports (e.g. cac/deno) are covered by listing the package (e.g. cac). Node built-in modules are always allowed to be imported when platform is node.
Note: ES imports and dynamic import expressions are checked. CJS require calls are not detected.
resolveDepSubpath?
optional resolveDepSubpath?: boolean;Defined in: src/features/deps.ts:81
Resolve dependency subpath imports to their actual package-relative paths when externalizing packages without an exports field.
Default
trueskipNodeModulesBundle?
optional skipNodeModulesBundle?: boolean;Defined in: src/features/deps.ts:74
Skip bundling all node_modules dependencies.
Note: This option cannot be used together with alwaysBundle.
Default
false