markerikson / react-prod-sourcemaps

A tool to update app sourcemaps with the original code of ReactDOM's production builds
MIT License
56 stars 2 forks source link

Add addtional react production artifact sourcemaps #3

Open jasikpark opened 1 year ago

jasikpark commented 1 year ago

I'm guessing react-dom was the MVP option for testing this out? It would be great to setup sourcemaps for

in addition to react-dom

markerikson commented 1 year ago

Yeah, easy to throw those in too, and I tried to set up the logic and assets folder to support that :) but react-dom was the critical part, since it has all the reconciler logic.

JonasBa commented 1 year ago

@markerikson would be nice if we could generate sourcemaps for react-dom/profiling as well. I would be happy to spend some time in order to get that working too

markerikson commented 1 year ago

Added react and react-dom.profiling for 17.0.2, 18.1, and 18.2!

https://github.com/markerikson/react-prod-sourcemaps/releases/tag/v0.2.0

markerikson commented 1 year ago

A few weeks ago I did try to build React 16.14.0 as well, but my first attempt generated JS build artifacts that were significantly different.

Looks like this thread explains why:

16.14.0 is really 16.13.1 , with the JSX runtime artifacts from 17 copied over.