Export mode
as its own package
#237
Comments
Hi @mfix22! Would it suffice to import |
We are going to use it in the browser (obviously) so we just want the import to be as small as possible.
@asiandrummer, I would just like to import this function, the one passed to |
@mfix22 -
I take that you'd like to import the mode function, as well as the required imported modules that include
So if we just released, let's say I understand that I may not be familiar with your situation though - may I ask what your use case is? Is ~100K addition enough to hinder the performance in your web application? I'm willing to consider releasing said |
It would be desirable to tackle this at the build stage, I think: if you directly require "codemirror-graphql/mode" (and only that), you would ideally be able to bundle only that and its dependencies (which as @asiandrummer points out, are quite large). If there is some technical obstacle to that in how codemirror-graphq is structured, we should fix it (although I am not aware of any issues), but I don't think creating a separate package should be necessary. |
Hey guys after further thought, I am going to close this. Every scenario where I would like to use that function is for |
We would like to consume just the GraphQL mode file. Would it be possible to release that as its own package?
The text was updated successfully, but these errors were encountered: