Which packages to install from npm?

Hello,

Very new to codemirror6, but what packages must I install if want to use @codemirror/merge, @codemirror/lang-markdown ?

Must I also install separately “codemirror”, “@codemirror/view”, “@codemirror/state”, “@codemirror/commands” and then bundle everything via webpack?

You install the packages you directly import in your own code. Everything else will automatically be present as a transitive dependency. But yeah, to do anything at all, you’ll need to import @codemirror/view at least. You could start from one of the example programs on the website, and build out from there.

1 Like