Browse Source

"exports" section for codemirror lib itself

AMD loader uses this to detect when the library is loaded
Herbert Vojčík 9 năm trước cách đây
mục cha
commit
57014da163
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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" ]