codemirror-json-schema icon indicating copy to clipboard operation
codemirror-json-schema copied to clipboard

Library size

Open mscharp opened this issue 1 year ago • 1 comments

I have a project with a fairly minimal @codemirror setup, and I want to add json schema validation. When I add codemirror-json-schema, it increases the size of my project more than codemirror itself does. It seems like there was a large jump in size with the yaml schema validation. Is it possible to setup the library in such a way that the yaml dependencies can be excluded if they are not wanted? I've included images of the size of the library in ^0.6.0 and for ^0.7.0. Thanks!

Image Image

mscharp avatar Feb 04 '25 17:02 mscharp

I think it may be because of a markdown formatting library we added around the same time that we added the yaml support, perhaps we can make it an optional dependency, but perhaps we need to look closely at our packaging and ensure that tree shaking is happening properly, thanks for the heads up!

acao avatar Feb 28 '25 16:02 acao