ExternalsPlugin
This plugin allows you to specify external dependencies that should not be bundled into the output files. This is particularly useful for libraries that are already available globally or managed by other scripts.
The externalsType and externals configurations leverage the plugin internally. Therefore, you can utilize the respective functionality directly through these configuration options without needing to use the plugin separately.
Options
type
Type:
Specifies the default type for the externals.
For more details, refer to externalsType.
externals
Type:
Prevent bundling of certain imported packages and instead retrieve these external dependencies at runtime.
For more details, refer to externals.

