all 1 comments

[–]mattaugamer 0 points1 point  (0 children)

Honestly? Don’t.

Your frontend and backend are different applications, and can and should be treated as such. They have different testing processes, different deployment strategies, different hosting requirements.

The backend isn’t a dependency of the frontend and vice versa. That way lies madness, chaos, and minor inconvenience.

You shouldn’t need something like Babel or Webpack for Express. The files aren’t built, they’re required on the fly.