StephenGrider / mfe

51 stars 57 forks source link

BUG - app not rendering JS logic as a standalone in production #3

Open ovsundal opened 3 years ago

ovsundal commented 3 years ago

Problem: When building and serving one of the applications as a standalone, it will not render any JS logic.

Solution: Remove the if (process.env.NODE_ENV === 'development') {.... guard in bootstrap.tsx (there is no logic in bootstrap.tsx that calls the mount function if process.env.NODE_ENV === "production").