Do not compile server-side code to ES5
Closed this issue · 1 comments
overlookmotel commented
At present, all the code is transpiled with Babel. This is unnecessary for server-only code as it doesn't need to be ES5.
Could either:
- Switch off all transpilation
or: - Transpile server-side code with Node 10 as the target
overlookmotel commented
NB Cannot build the server + client code separately, as they both link to serverContext.js
which needs to be shared for server-side rendering to work.