Meteor Packages vs NPM for modern bundles

React Loadable’s SSR doesn’t work with Meteor because the solution they implement assumes webpack - it requires both a babel plugin and a webpack plugin to get it working. The babel plugin needs a small change to work in Meteor, and the webpack plugin obviously does not work at all. Additionally, some of the assumptions made in Loadable’s architecture don’t apply to Meteor. For example, they assume a package -> bundle mapping, where Meteor’s dynamic-imports system doesn’t require that. They also assume a loading scenario we don’t have to worry about in Meteor’s server-render package.

You can read more about it all here. And check out the PR I made which is probably easier to understand than the micro-blog post, and includes instructions on how to set it all up here. I’m also working on starter repo which will implement this solution.

1 Like