Skip to content

Commit

Permalink
change updateRequireConfig in language.js to work with mini_require
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Mar 21, 2018
1 parent 131091a commit da2f81a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 2 additions & 7 deletions plugins/c9.ide.language/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,13 +588,8 @@ define(function(require, exports, module) {
}

function updateRequireConfig(modulePath, worker) {
var path = window.requirejs.toUrl(modulePath, "", true);
var url = require.toUrl(path);
if (/^\w+:/.test(url)) {
var paths = {};
paths[path] = url;
worker.call("initBaseUrls", [paths]);
}
var config = window.requirejs.getConfig();
worker.call("updateRequireConfig", [config]);
}

plugin.on("load", function() {
Expand Down
4 changes: 4 additions & 0 deletions plugins/node_modules/ace/lib/ace/worker/worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit da2f81a

Please sign in to comment.