autoExternal is a specific configuration for bundle mode. It will not take effect in bundleless mode (set lib.bundle to false) since deps will not be bundled in bundleless mode.
--auto-external / --no-auto-externalWhether to automatically externalize dependencies of different dependency types and do not bundle them.
booleantrueWhether to automatically externalize dependencies of type dependencies.
booleantrueWhether to automatically externalize dependencies of type optionalDependencies.
booleantrueWhether to automatically externalize dependencies of type peerDependencies.
booleanfalseWhether to automatically externalize dependencies of type devDependencies.
The default value of autoExternal is true, which means the following dependency types will not be bundled:
dependenciesoptionalDependenciespeerDependenciesAnd the following dependency types will be bundled:
devDependenciesThis configuration is equivalent to the following object type:
To disable the processing of a specific type of dependency, you can configure autoExternal as an object like this:
If you want to disable the default behavior, you can set autoExternal to false:
For more details about handling third-party dependencies, please refer to Handle Third-party Dependencies.