Are Next.js and Gatsby.js using the split code Loadable Component?

401 Views Asked by At

Are Next.js and Gatsby.js using the split code Loadable Component ?

The loadable component I am talking about is the one recommended by the Facebook team https://github.com/gregberge/loadable-components

I am lazy at searching this.

If you reply I'll give points.

1

There are 1 best solutions below

2
On

If you're using npm, you may find that out by doing a deep search of dependency tree on your Next.js or Gatsby projects using the npm ls command.

Neither the latest version of Next.js, nor Gatsby use the package you specified.

Next.js implements this feature with dynamic imports.

And Gatsby has a separate plugin for the job: gatsby-plugin-loadable-components.