Hello ,
i have many components in index page and those are havy so if i load all of them, then my javascript excution time is getting longer so i was trying to use https://www.npmjs.com/package/react-loadable-visibility but i am unable to use it
can anyone help me with steps to configure webpack?
i am getting this error
Invariant Violation: loadable: SSR requires `@loadable/babel-plugin`, please install it
at invariant (webpack-internal:///./node_modules/@loadable/component/dist/loadable.esm.js:13:118)
at new InnerLoadable (webpack-internal:///./node_modules/@loadable/component/dist/loadable.esm.js:14:2002)
at processChild (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:397:643)
at resolve (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:396:122)
at ReactDOMServerRenderer.render (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:433:1199)
at ReactDOMServerRenderer.read (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:433:55)
at renderToString (webpack-internal:///./node_modules/react-dom/cjs/react-dom-server.node.development.js:470:116)
at eval (webpack-internal:///./node_modules/@frontity/core/src/server/index.tsx:53:243)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:97:5)