Open joker-777 opened 4 years ago
CodeMirror doesn't support an ES module interface, so there's going to be a bunch of bundler magic happening here that I can't see through. If you can reproduce this in a CommonJS setup, I can take a look.
Thanks for your answer. I hope that at one point you will also support ES modules. Any reason why you haven't done it yet?
See https://codemirror.net/6/. The 5.x branch is never going to support ES modules, because with the current approach to modularity that'd create either a bunch of duplication or a breaking change.
Thanks for pointing to it. I didn't know that you are working on a new version.
Hi, this is the way how I import and initialize codemirror right now
Before I was using a global instance
window.CodeMirror
whereyaml_linter
was used correctly but now it doesn't work anymore. It works though when I use: