single-spa / single-spa-angular

Helpers for building single-spa applications which use Angular
Apache License 2.0
200 stars 78 forks source link

How to test changes to the codebase? #506

Open enlob opened 6 months ago

enlob commented 6 months ago

Question

Hi, I wish to contribute to this project but I'm finding it difficult to test the included test apps against my local changes. Right now it looks like test apps are correctly loading angular dependencies as externals.

image

And according to the importmap, the dependencies are fetched from the cdn.

image

What is the correct approach to load the local library instead (under /lib)?

enlob commented 4 months ago

@arturovt could you please point me in the right direction?

arturovt commented 4 months ago

I don't remember exactly, as far as I recall I used to serve it locally through the root app Webpack's config...

enlob commented 4 months ago

@arturovt thank you for your answer. Are you able to elaborate a little bit more on that? Did you use something like rollup to build systemjs modules from fesm modules and then maybe http-server to serve them locally, and changed the root app importmap to point to the locally served modules?

arturovt commented 4 months ago

Yes, I'll go over the integration locally and provide you with steps on debugging.