decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Types for registerWidget don't match the implementation

Open fgnass opened this issue 10 months ago • 0 comments

Describe the bug

The types for registerWidget only specify a single signature, but the implementation allows two additional ways of registering widgets, which are both actively used throughout the codebase.

Why this matters

Currently, decap-cms-app registers all widgets eagerly at once, which results in very large bundle sizes. I would like to provide an alternative, more modular approach, but this requires the types to match in the first place.

What to do

Stay tuned for a PR or possibly an update to #7402

fgnass avatar Feb 24 '25 06:02 fgnass