You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plugin shouldn't transpile lazy if lazy imported not from @loadable/component, because lazy from 'react' (and other libraries) shouldn't be transpiled.
Plugin should transpile lazy if it's renamed import { lazy as renamedLazy } from '@loadable/component'
The text was updated successfully, but these errors were encountered:
Plugin
loadable-components
should transpilelazy
from@loadable/component
likeloadable
Why ?
lazy
from@loadable/component
supports react Suspense unlikeloadable
Helpful info
Original (babel) plugin tests - https://github.com/gregberge/loadable-components/blob/main/packages/babel-plugin/src/index.test.js#L24
Plugin shouldn't transpile
lazy
iflazy
imported not from@loadable/component
, becauselazy
from 'react' (and other libraries) shouldn't be transpiled.Plugin should transpile
lazy
if it's renamedimport { lazy as renamedLazy } from '@loadable/component'
The text was updated successfully, but these errors were encountered: