Improve monaco-editor-core bundling

This commit is contained in:
Alex Dima
2016-09-18 23:05:42 +03:00
parent fa48339ae2
commit 72ef20b5b3
7 changed files with 121 additions and 22 deletions

View File

@@ -9,7 +9,9 @@
let MonacoEnvironment = (<any>self).MonacoEnvironment;
let monacoBaseUrl = MonacoEnvironment && MonacoEnvironment.baseUrl ? MonacoEnvironment.baseUrl : '../../../';
importScripts(monacoBaseUrl + 'vs/loader.js');
if (typeof (<any>self).define !== 'function' || !(<any>self).define.amd) {
importScripts(monacoBaseUrl + 'vs/loader.js');
}
require.config({
baseUrl: monacoBaseUrl,