Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/webpack-embedded-dependencies-plugin > IEmbeddedDependenciesWebpackPluginOptions > packageFilterPredicate

IEmbeddedDependenciesWebpackPluginOptions.packageFilterPredicate property

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Predicate function that determines whether a package should be included in the embedded dependencies file or the generated license file.

Signature:

packageFilterPredicate?: (packageJson: IPackageData, filePath: string) => boolean;