The Plugin

SharedLibraryWebpackPlugin

SharedLibraryWebpackPlugin is a class that implements webpack plugin functionality,

Options

libs

string | SharedLibrarySearchConfig | Array<string | SharedLibrarySearchConfig>

An option that configures the search for shared libraries and the formation of a chunk name. It can be a string or SharedLibrarySearchConfig or an array of them.

namespace

string

The namespace for saving exported libraries

disableDefaultJsonpFunctionChange

boolean

By default: false

If true jsonpFunction will be replaced with a random name

SharedLibrarySearchConfig

SharedLibrarySearchConfig configures the search for sharing library and the formation of a chunk name.

pattern

string

An option to search for libraries in a bundle.

name

string

A name to search for a library in a bundle.

chunkName

string

A name of a shared chunk

If a pattern exists chunkName is ignored

suffix

string

A chunk name suffix

By default library version {major}.{minor}-{prerelease}

separator

string

Separator for a chunk name and suffix

deps

string[]

Libraries that the current one depends on.

usedExports

string[]

The import names to be used by another application

Last updated