Created by: zhirzh
Using babel-preset-react-app
with production ready SSR isn't possible due to the modules: false
. While there are methods of achieving SSR, like using babel-register, they are not production ready.
The only other alternative is to transpile twice. First, convert ES6 code to an intermediate CJS code with the import
statements intact. Then the intermediate to true CJS code.
This can be avoided by allowing the user to transform modules to CJS in the first place.