redux-devtools icon indicating copy to clipboard operation
redux-devtools copied to clipboard

Consider UMD build for node packages

Open markboyall opened this issue 7 months ago • 1 comments

I'd like to suggest including a UMD build in the npm packages for redux-devtools.

Why? To cut a long story short, we have a very large Typescript project. We are using AMD modules because these are the only ones Typescript supports with -outFile. Using an external bundler to transpile or bundle modules makes the build take unconscionably long; Typescript alone is already 40sec+ and the bundler takes even longer than this on top. Having only ES6 or CJS modules makes life pretty complicated for us. It would be a lot simpler to handle as UMD.

markboyall avatar Apr 28 '25 13:04 markboyall

I hear the pain there, but we did intentionally drop UMD builds out of all of the Redux projects a couple years ago due to general lack of usage and changes in the ecosystem.

There was some discussion at https://github.com/reduxjs/redux-toolkit/issues/4278 where someone else set up their own project to compile RTK's artifacts with Rollup to generate UMD files.

Out of curiosity, which actual packages from this repo are you using, and why?

As far as bundling speed, what tools have you looked at? There's been a lot of speedups with tools like tsup, tsdown, and rslib lately.

markerikson avatar Apr 28 '25 15:04 markerikson