提交 92dfc35a 编写于 作者: A Alex Dima

Remove shim usage to allow loading under r.js

上级 42f8432c
...@@ -3,16 +3,6 @@ ...@@ -3,16 +3,6 @@
* Licensed under the MIT License. See License.txt in the project root for license information. * Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/ *--------------------------------------------------------------------------------------------*/
require.config({
shim: {
'vs/base/common/marked/raw.marked': {
exports: function () {
return this.marked;
}
}
}
});
define(['./raw.marked'], function (marked) { define(['./raw.marked'], function (marked) {
return { return {
marked: marked marked: marked
......
...@@ -1265,7 +1265,9 @@ marked.inlineLexer = InlineLexer.output; ...@@ -1265,7 +1265,9 @@ marked.inlineLexer = InlineLexer.output;
marked.parse = marked; marked.parse = marked;
// TODO MonacoChange: we have our own way of defining modules // TODO MonacoChange: we have our own way of defining modules
this.marked = marked; define([], function() {
return marked;
});
//if (typeof module !== 'undefined' && typeof exports === 'object') { //if (typeof module !== 'undefined' && typeof exports === 'object') {
// module.exports = marked; // module.exports = marked;
//} else if (typeof define === 'function' && define.amd) { //} else if (typeof define === 'function' && define.amd) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册