server-components-demo icon indicating copy to clipboard operation
server-components-demo copied to clipboard

Webpack isServer:true

Open sibelius opened this issue 4 years ago • 1 comments

What do you think it is a good implementation for the webpack plugin for the server?

It should be similar to react server dom webpack node custom register?

Should we replace .client code with only their reference?

sibelius avatar Dec 28 '20 20:12 sibelius

I've made a simple implementation of a Loader o solve this

https://github.com/sibelius/react-server-components-boilerplate/pull/3

let me know how I can contribute this to React codebase

it is missing extract all exports using acorn to match node register approach

sibelius avatar Jan 05 '21 20:01 sibelius