Use the global monaco only in the AMD case (see https://github.com/microsoft/monaco-editor/issues/1974)

This commit is contained in:
Alex Dima 2020-09-07 12:24:21 +02:00
parent 47ee25bf88
commit 28d4512f33
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
17 changed files with 321 additions and 235 deletions

View file

@ -24,14 +24,14 @@ bundleOne('monaco.contribution');
bundleOne('jsonMode');
bundleOne('jsonWorker');
function bundleOne(moduleId, exclude) {
function bundleOne(moduleId) {
requirejs.optimize({
baseUrl: 'out/amd/',
name: 'vs/language/json/' + moduleId,
out: 'release/dev/' + moduleId + '.js',
exclude: exclude,
paths: {
'vs/language/json': REPO_ROOT + '/out/amd'
'vs/language/json': REPO_ROOT + '/out/amd',
'vs/language/json/fillers/monaco-editor-core': REPO_ROOT + '/out/amd/fillers/monaco-editor-core-amd',
},
optimize: 'none',
packages: [{