react-mosaic icon indicating copy to clipboard operation
react-mosaic copied to clipboard

Add ES Modules output, make BlueprintJS dependency explicit

Open alexkreidler opened this issue 4 years ago • 8 comments

I recently started using react-mosaic in a project with Snowpack. These are the changes I made to get it working.

I added ES module generation via tsc, and removed the require.resolve calls, because some deployments aren't going to have that available. There is a tradeoff there with pulling in a dependency that not everyone will necessarily use if they want their own styles.

I also updated various packages to get it working in the browser with ESM not webpack.

These changes don't affect any functionality, and these features may not be a high priority for the maintainers. I just thought you may want to be aware and maybe pick and choose some of my additions.

Thanks for a great project!

alexkreidler avatar Aug 27 '20 21:08 alexkreidler

This is super useful I appreciate it. Will definitely look into picking some of these changes over to master although I have very little time nowadays to spend on this project so it may be a while. Thanks for sharing!

nomcopter avatar Aug 27 '20 21:08 nomcopter

#193

himself65 avatar Aug 08 '22 21:08 himself65

Does this need to be updated? We need this too and this issue has been around since 2020 and last touched in 2022.

sgtsquiggs avatar Oct 24 '23 22:10 sgtsquiggs

I suggest you to use react-resizable-panels instead

himself65 avatar Oct 25 '23 02:10 himself65

I suggest you to use react-resizable-panels instead

Have you seen anywhere where panels were able to be dragged to re-arrange w/ react-resizable-panels?

The DND functionality has to be the most bug-prone part of implementing something like this and I don't see any hint of it in their demo.

sgtsquiggs avatar Oct 26 '23 14:10 sgtsquiggs

@sgtsquiggs

https://github.com/bvaughn/react-resizable-panels/issues/126

himself65 avatar Oct 26 '23 21:10 himself65