debian-mirror-gitlab/app/assets/javascripts/repo/monaco_loader.js
2017-09-10 17:25:29 +05:30

13 lines
336 B
JavaScript

/* eslint-disable no-underscore-dangle, camelcase */
/* global __webpack_public_path__ */
import monacoContext from 'monaco-editor/dev/vs/loader';
monacoContext.require.config({
paths: {
vs: `${__webpack_public_path__}monaco-editor/vs`,
},
});
window.__monaco_context__ = monacoContext;
export default monacoContext.require;