Browse Source

"exports" section for codemirror lib itself

AMD loader uses this to detect when the library is loaded
Herbert Vojčík 9 years ago
parent
commit
57014da163
1 changed files with 2 additions and 1 deletions
  1. 2 1
      codemirror3.amd.json

+ 2 - 1
codemirror3.amd.json

@@ -4,7 +4,8 @@
     },
     "shim": {
         "codemirror3/lib/codemirror": {
-            "deps": [ "css!codemirror3/lib/codemirror" ]
+            "deps": [ "css!codemirror3/lib/codemirror" ],
+            "exports": "CodeMirror"
         },
         "codemirror3/mode/smalltalk/smalltalk": {
             "deps": [ "../../lib/codemirror" ]