me-12 / single-spa-portal-example

Example project on how to combine multiple SPA's on a single Website
MIT License
407 stars 136 forks source link

is it possible to add react app with create-react-app? #67

Open daniele-zurico opened 5 years ago

daniele-zurico commented 5 years ago

I tried to implement exactly the same thing you did but when I do with CRA v2 it fail do you know if it's possible to do it?

gandalfTheBlue commented 5 years ago

@daniele-zurico It's possible, i already did it with CRA v2. However we need to eject the CRA. Please check my example here: https://github.com/gandalfTheBlue/micro-frontends-react

EvanBurbidge commented 5 years ago

@gandalfTheBlue why did you have to eject the CRA? I'm trying to get this working with vue cli noticing a similar issue.

gandalfTheBlue commented 5 years ago

@EvanBurbidge I use CRA2 which will do the code splitting. To have only one entry for single-spa, i have to eject CRA2 to disable the code splitting.