overlookmotel/react-lazy-data

Do not compile server-side code to ES5

Closed this issue · 1 comments

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:

  1. Switch off all transpilation
    or:
  2. Transpile server-side code with Node 10 as the target

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.