-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redudant codemirror dependency #1
Comments
I'm not sure I follow. Since clerk render deps are in the main profile, if shadow-cljs resolves dependencies correctly you will still have codemirror deps pulled in, as per your remark in #2
so in theory we could just get rid of the deps.cljs in this repo. Also I'm not sure this library was planned to be used outside of a codemirror context, but I'd rather wait for @philippamarkovics to take a look at this
are you referring to a setup which is not involving a shadow build, like es module imports? Furthermore I think shadow will need those codemirror deps at build time for compiling clojure-mode which is also part of the main deps. |
You are right, I had a problem with the The problem was resolved by removing the injected
Yes, I believe so, though I've been cautious about implementing significant modifications.
I initially thought the issue with initializing a local codemirror instance in the test application stemmed from its use within the Nevertheless, I believe the patch remains valid since it eliminates the unnecessary reference of an unused codemirror code. Thanks |
Hi,
the command-bar library is dependent on
codemirror
at this early stage, in what appears to be code to support the demo.command-bar/src/nextjournal/command_bar.cljs
Lines 2 to 9 in ff66b82
This means that early adopters for the lib will bring in an additional unnecessary dependency in their app, likely to cause conflicts if they also have a local codemirror setup, other than the unused code they bring in.
A solution is to relocate the relevant code to the demo.
PR to follow.
The text was updated successfully, but these errors were encountered: