single-spa / single-spa-playground

A website that helps you set up single-spa
http://single-spa-playground.org
MIT License
39 stars 10 forks source link

Exporting array of functions as lifecycles should be supported #43

Open filoxo opened 3 years ago

filoxo commented 3 years ago

I'm updating an example repo of mine to Webpack 5, and that example exports an array of functions, not just one function. Playground validates that the lifecycles are functions. An array of functions is valid as well.

https://github.com/single-spa/single-spa-playground/blob/2b809e72e97cfc6cd9a0f32dab12738c123b2802/src/verify-app-guide/verification-steps/lifecycles-exported.component.js#L16-L18

This would be a good candidate for a new contributor or beginner, so contributions for this fix are welcome!