mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +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');
|
].join('\n');
|
||||||
|
|
||||||
bundleOne('monaco.contribution');
|
bundleOne('monaco.contribution');
|
||||||
bundleOne('jsonMode');
|
bundleOne('jsonMode', ['vs/language/json/monaco.contribution']);
|
||||||
bundleOne('jsonWorker');
|
bundleOne('jsonWorker');
|
||||||
|
|
||||||
function bundleOne(moduleId) {
|
function bundleOne(moduleId, exclude) {
|
||||||
requirejs.optimize(
|
requirejs.optimize(
|
||||||
{
|
{
|
||||||
baseUrl: 'out/amd/',
|
baseUrl: 'out/amd/',
|
||||||
name: 'vs/language/json/' + moduleId,
|
name: 'vs/language/json/' + moduleId,
|
||||||
out: 'release/dev/' + moduleId + '.js',
|
out: 'release/dev/' + moduleId + '.js',
|
||||||
|
exclude: exclude,
|
||||||
paths: {
|
paths: {
|
||||||
'vs/language/json': REPO_ROOT + '/out/amd',
|
'vs/language/json': REPO_ROOT + '/out/amd',
|
||||||
'vs/language/json/fillers/monaco-editor-core':
|
'vs/language/json/fillers/monaco-editor-core':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue