I now see with despair every Tutor update invoking “npm install” umpteen times.
Hmmmm this should not be the case. MFE need to be rebuilt (with
npm run build) every time their configuration changes, by definition, but rebuilding should not trigger calls to
npm install. Can you give more details on what exactly is going on? Maybe in a separate topic on the Tutor forums: https://discuss.overhang.io/
I’m not a great Docker specialist, but from line 25 in tutor-mfe/Dockerfile at master · overhangio/tutor-mfe · GitHub it’s clear, that after “tutor local quickstart” (for example to update to a new version of Tutor), for each MFE all the corresponding node_modules are being pulled from the registry.
We have now I think 4 or so MFE, but in the future with many more MFE, this build process will take forever.
There seems not te be a good solution for this, maybe some form of only rebuilding MFE’s that have changed, and not all of them?