Describe the bug
According to the Loadable docs, the loadable() function should be transformed by the plugin regardless of where it's imported from. Internally we vendor @loadable/component to support some extra features our infra requires; the Babel plugin transforms it successfully while the swc plugin ignores it.
Minimal reproduction
import loadable from 'my-vendored-loadable';
loadable(() => import('./SomeComponent'));
Expected behavior
The first argument of any imported function named loadable should be transformed in accordance to the Loadable spec.
Describe the bug
According to the Loadable docs, the
loadable()function should be transformed by the plugin regardless of where it's imported from. Internally we vendor@loadable/componentto support some extra features our infra requires; the Babel plugin transforms it successfully while the swc plugin ignores it.Minimal reproduction
Expected behavior
The first argument of any imported function named
loadableshould be transformed in accordance to the Loadable spec.