Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Use dynamic import for mxgraph to reduce final main bundle size #19
Thanks for the work!
@SylvainCorlay and I talked about some ways to make this extension more adoptable, and a big one is getting the end-user build burden under control... all it takes is a few big dependencies, and end users will start running into out of memory errors for production builds.
This PR uses a dynamic
While it still imports
The slightly shorter build time could be incidental, but the size difference is pretty real...
Also, since i was doing a bunch of builds, I snuck in the spdx-compatible license string because i got tired of the warnings.
The other thing to making this more adoptable (out of scope for this PR) is some strategy for removing the runtime github.com dependency. Not sure the right way to do it: one could make an