Fixes the Problem with the Repo Editor Loading Typescript Services
This commit is contained in:
parent
ea6a2b0a84
commit
077ecf8a80
2 changed files with 3 additions and 2 deletions
|
@ -22,7 +22,8 @@ const RepoEditor = {
|
|||
const monacoInstance = Helper.monaco.editor.create(this.$el, {
|
||||
model: null,
|
||||
readOnly: false,
|
||||
contextmenu: false,
|
||||
contextmenu: true,
|
||||
scrollBeyondLastLine: false,
|
||||
});
|
||||
|
||||
Helper.monacoInstance = monacoInstance;
|
||||
|
|
|
@ -232,7 +232,7 @@ var config = {
|
|||
from: path.join(ROOT_PATH, `node_modules/monaco-editor/${IS_PRODUCTION ? 'min' : 'dev'}/vs`),
|
||||
to: 'monaco-editor/vs',
|
||||
transform: function(content, path) {
|
||||
if (/\.js$/.test(path) && !/worker/i.test(path)) {
|
||||
if (/\.js$/.test(path) && !/worker/i.test(path) && !/typescript/i.test(path)) {
|
||||
return (
|
||||
'(function(){\n' +
|
||||
'var define = this.define, require = this.require;\n' +
|
||||
|
|
Loading…
Reference in a new issue