0

I have an Anglular application that is using the single-spa-angular framework: https://single-spa.js.org/

By doing the same build on two different environments I have two different dist contents. locally we are on a windows environment. in a jenkins pipe we are on a linux environment.

the result on ambien windows works if integrated with the other single-spa modules. the result from ambiene linux doesn't work.

the difference is evident in the number of chunks generated (one more in the linux version that doesn't work)

do you have any idea why this difference and how to solve the problem?

Thank you all.

enter image description here

pagurix
  • 1,926
  • 1
  • 12
  • 8
  • This seems more like an Angular cli problem than a single-spa problem... – filoxo Feb 23 '21 at 07:12
  • 1
    @filoxo Why it should be a problem related to angular-cli rather than single-spa? Can you give me more info please? – lucaleone Feb 24 '21 at 10:38
  • Because single-spa makes only minimal changes to the config just to setup the parts that are required for microfrontends (just module format, and publicPath type stuff) but it does not do any conditional logic for environment configs. In other words, the changes the single-spa-angular generator are not target- or browser-specific. – filoxo Feb 27 '21 at 01:28

0 Answers0