react-mosaic
react-mosaic copied to clipboard
Add ES Modules output, make BlueprintJS dependency explicit
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!
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!
#193
Does this need to be updated? We need this too and this issue has been around since 2020 and last touched in 2022.
I suggest you to use react-resizable-panels instead
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
https://github.com/bvaughn/react-resizable-panels/issues/126