Dependency resolution for CodeMirror modes