Categories
property CreateImportMapOptions.filter

Matchers a candidate pattern target must pass, each tested against the target path. A target is kept only when every matcher accepts it. Combines with extensions. Unset keeps every target.

Examples

Example 1

// Keep .js targets that are not hashed internal chunks.
const options = { extensions: ['js'], filter: [/^(?!.*internal)/] };

Type

readonly TargetFilter[]