dkhrunov / ngx-mfe

Angular library for working with micro-frontends in Webpack 5 and plugin ModuleFederation
https://www.npmjs.com/package/ngx-mfe
MIT License
22 stars 4 forks source link

Question: Use your lib with Nx MFE functionality #20

Closed ArgV04 closed 1 year ago

ArgV04 commented 1 year ago

Hello,

we are using Nx with its mfe functionality which looks similar to the architects approach but the question is if I can use your lib with Nx based mfe config flow together?

Thx

dkhrunov commented 1 year ago

Hello,

Yes, you can use it with the Nx repository. I created this functionality before Nx adopted a plugin based approach (mfe loading is embedded in the html template). You can see examples here and here.

ArgV04 commented 1 year ago

Thx for fast response. In your linked examples I still see the dep: angular-architects/module-federation listed. Is there any reason for this?

Thx

dkhrunov commented 1 year ago

Thx for fast response. In your linked examples I still see the dep: angular-architects/module-federation listed. Is there any reason for this?

Thx

This library is based on @angular-architects/module-federation, it is highlighted in the documentation here.

ArgV04 commented 1 year ago

Thats was my question :) is there a way to use Nx config MFE config way under the hood without angular-architects/module-federation but on top with your stuff? :)

dkhrunov commented 1 year ago

Thats was my question :) is there a way to use Nx config MFE config way under the hood without angular-architects/module-federation but on top with your stuff? :)

Oh, my bad ^__^. I didn't understand you correctly.

I haven't tried this at the moment. I don't often work with MFE now, so I can't give you an honest answer.

dkhrunov commented 1 year ago

I will be grateful if you eventually find out this question yourself and write your result here.