I'm transpiling ES6 to ES5.
- BabelJS for the NodeJS Express server files and server-side rendering output to a directory build/server/.
- Browserify + babelify for the ReactComponents output to a build/client/bundle.js file
When trying to import a React Component from build/client/bundle.js to a build/server/ file the app crashes because I'm importing an untranspiled ReactComponent.
How could I import the ReactComponent without duplicating the code in the server (re-using the code from the client/bundle.js)?