EarthCubeGeochron / Sparrow

A software tool and schema+API spec for connecting laboratory measurements to data consumers
https://sparrow-data.org
Mozilla Public License 2.0
14 stars 4 forks source link

Frontend staged bundling #245

Open davenquinn opened 3 years ago

davenquinn commented 3 years ago

Errors like #242 and #244 arise from bundling of frontend code (and in development mode, download/install of node_modules) at runtime. This is a wasteful and error-prone process for the majority of users. It makes startup much slower and less deterministic. However, we do this so we can incorporate lab-specific plugins into the build. It would be useful to accomplish more of the bundling at build time.

To do this, we should probably upgrade to Webpack v5, which has better tools for multistage builds. And then figure out how to keep plugins separate. We could potentially make use of new sparrow-prestart.sh scripts to build user-provided plugins into images, but this probably won't happen for a while.

davenquinn commented 3 years ago

This goes hand-in-hand with #223