Sfoglia il codice sorgente

"exports" section for codemirror lib itself

AMD loader uses this to detect when the library is loaded
Herbert Vojčík 10 anni fa
parent
commit
57014da163
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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" ]