Home > @lynx-js/externals-loading-webpack-plugin > ExternalValue > libraryName
The name of the library. Same as https://webpack.js.org/configuration/externals/\#string.
By default, the library name is the same as the externals key. For example:
The config
Will generate the following webpack externals config:
If one external bundle contains multiple modules, should set the same library name to ensure it's loaded only once. For example:
Will generate the following webpack externals config:
You can pass an array to specify subpath of the external. Same as https://webpack.js.org/configuration/externals/\#string-1. For example:
Will generate the following webpack externals config:
Signature:
Lodash