What is global loading extras in SystemJS and how to use it?

203 Views Asked by At

Currently, I have a project using single-spa for implementing micro-frontend. I have read The Recommended Setup from the single-spa page and found that I can use global loading for the shared library. I have read this global loading in SystemJS README but I still don't know how to use it.

Docs:

Single-spa: https://single-spa.js.org/docs/recommended-setup#systemjs

SystemJS: https://github.com/systemjs/systemjs#extras

Could you please give me an example or instruction to use the global loading feature of SystemJS? Thank you in advance.

1

There are 1 best solutions below

1
filoxo On

The Global loading extra is already included if you are using the system.js build (versus the s.js minimal loader) so you do not need to include anything else. root-config projects generated by create-single-spa use the system.js build.