true
Whether to automatically externalize dependencies and do not bundle them.
boolean
true
Whether to externalize dependencies of type dependencies
.
boolean
true
Whether to externalize dependencies of type optionalDependencies
.
boolean
true
Whether to externalize dependencies of type peerDependencies
.
boolean
false
Whether to bundle dependencies of type devDependencies
.
The default value of autoExternal
is true
, which means the following dependency types will not be bundled:
dependencies
optionalDependencies
peerDependencies
And the following dependency types will be bundled:
devDependencies
It is equivalent to the following configuration:
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.