Wildcard Matching in aura:dependency Is Deprecated

Wildcard matching can cause save validation errors when no resources match. Wildcard matching can also slow page load time because it sends more definitions than needed to the client. Instead, add an <aura:dependency> tag for each resource that’s not directly referenced in the component’s markup.

The framework tracks dependencies between definitions, such as components, defined in markup. This tracking enables the framework to send the definitions to the browser. However, if a component’s JavaScript code dynamically instantiates another component or fires an event that isn’t directly referenced in the component’s markup, use <aura:dependency> in the component’s markup to explicitly tell the framework about the dependency.