gregberge / loadable-components

The recommended Code Splitting library for React ✂️✨
https://loadable-components.com
MIT License
7.58k stars 376 forks source link

fix: correct babel plugin default signature to allow any source of 'loadable' #972

Closed theKashey closed 11 months ago

theKashey commented 11 months ago

The old behaviour was allowing loadable to be of any source, even a local variable. Signatures tightened this logic and broke some user code.

Fix: default to loadable name unless signatures are overridden.