Skip to content

Commit 92dfc35

Browse files
committed
Remove shim usage to allow loading under r.js
1 parent 42f8432 commit 92dfc35

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

src/vs/base/common/marked/marked.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,6 @@
33
* Licensed under the MIT License. See License.txt in the project root for license information.
44
*--------------------------------------------------------------------------------------------*/
55

6-
require.config({
7-
shim: {
8-
'vs/base/common/marked/raw.marked': {
9-
exports: function () {
10-
return this.marked;
11-
}
12-
}
13-
}
14-
});
15-
166
define(['./raw.marked'], function (marked) {
177
return {
188
marked: marked

src/vs/base/common/marked/raw.marked.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1265,7 +1265,9 @@ marked.inlineLexer = InlineLexer.output;
12651265
marked.parse = marked;
12661266

12671267
// TODO MonacoChange: we have our own way of defining modules
1268-
this.marked = marked;
1268+
define([], function() {
1269+
return marked;
1270+
});
12691271
//if (typeof module !== 'undefined' && typeof exports === 'object') {
12701272
// module.exports = marked;
12711273
//} else if (typeof define === 'function' && define.amd) {

0 commit comments

Comments
 (0)