obsidianmd / obsidian-sample-plugin

2.61k stars 924 forks source link

What updates are needed to reflect the change to codemirror CM 6? #32

Closed AnnaKornfeldSimpson closed 2 years ago

AnnaKornfeldSimpson commented 2 years ago

The Obsidian forum has this guide for plugin developers on the CM 6 / codemirror v6.0 upgrade in the obsidian API. What changes need to be made to this sample plugin to follow the guide? For example, I think the list in the esbuild config needs updating, but are other changes necessary? Thanks in advance for any and all answers or links to further reading!

lishid commented 2 years ago

The sample plugin isn't importing any of the CodeMirror packages by default so there isn't much change required here. However, for your plugin that uses CodeMirror 6 packages, you will want to upgrade all of them to ^6.0.0 or later.