mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 11:35:40 +01:00
Avoid duplicating AMD modules
This commit is contained in:
parent
31a9c290b4
commit
4f0aec5dd1
1 changed files with 3 additions and 2 deletions
|
|
@ -21,15 +21,16 @@ const BUNDLED_FILE_HEADER = [
|
|||
].join('\n');
|
||||
|
||||
bundleOne('monaco.contribution');
|
||||
bundleOne('jsonMode');
|
||||
bundleOne('jsonMode', ['vs/language/json/monaco.contribution']);
|
||||
bundleOne('jsonWorker');
|
||||
|
||||
function bundleOne(moduleId) {
|
||||
function bundleOne(moduleId, exclude) {
|
||||
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/fillers/monaco-editor-core':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue