Skip to content

Commit e4b1db5

Browse files
committed
1 parent 419d5bb commit e4b1db5

4 files changed

Lines changed: 31 additions & 14 deletions

File tree

build/gulpfile.editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ gulp.task('extract-editor-src', ['clean-editor-src'], function () {
9595
'vs/base/browser/ui/octiconLabel/octiconLabel': 'vs/base/browser/ui/octiconLabel/octiconLabel.mock',
9696
},
9797
shakeLevel: 2, // 0-Files, 1-InnerFile, 2-ClassMembers
98-
importIgnorePattern: /^vs\/css!/,
98+
importIgnorePattern: /(^vs\/css!)|(promise-polyfill\/polyfill)/,
9999
destRoot: path.join(root, 'out-editor-src')
100100
});
101101
});

build/lib/treeshaking.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ function discoverAndReadFiles(options) {
9797
FILES[`${moduleId}.d.ts`] = dts_filecontents;
9898
continue;
9999
}
100+
const js_filename = path.join(options.sourcesRoot, moduleId + '.js');
101+
if (fs.existsSync(js_filename)) {
102+
// This is an import for a .js file, so ignore it...
103+
continue;
104+
}
100105
let ts_filename;
101106
if (options.redirects[moduleId]) {
102107
ts_filename = path.join(options.sourcesRoot, options.redirects[moduleId] + '.ts');

build/lib/treeshaking.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function printDiagnostics(diagnostics: ReadonlyArray<ts.Diagnostic>): void {
6969
}
7070
if (diag.file && diag.start) {
7171
let location = diag.file.getLineAndCharacterOfPosition(diag.start);
72-
result += `- ${location.line + 1},${location.character} - `
72+
result += `- ${location.line + 1},${location.character} - `;
7373
}
7474
result += JSON.stringify(diag.messageText);
7575
console.log(result);
@@ -160,6 +160,12 @@ function discoverAndReadFiles(options: ITreeShakingOptions): IFileMap {
160160
continue;
161161
}
162162

163+
const js_filename = path.join(options.sourcesRoot, moduleId + '.js');
164+
if (fs.existsSync(js_filename)) {
165+
// This is an import for a .js file, so ignore it...
166+
continue;
167+
}
168+
163169
let ts_filename: string;
164170
if (options.redirects[moduleId]) {
165171
ts_filename = path.join(options.sourcesRoot, options.redirects[moduleId] + '.ts');

build/monaco/ThirdPartyNotices.txt

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,28 @@ herein, whether by implication, estoppel or otherwise.
88

99

1010

11-
%% winjs version 4.4.0 (https://github.com/winjs/winjs)
11+
%% promise-polyfill version 8.1.0 (https://github.com/taylorhakes/promise-polyfill)
1212
=========================================
13-
WinJS
13+
Copyright (c) 2014 Taylor Hakes
14+
Copyright (c) 2014 Forbes Lindesay
1415

15-
Copyright (c) Microsoft Corporation
16-
17-
All rights reserved.
18-
19-
MIT License
20-
21-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
22-
23-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
16+
Permission is hereby granted, free of charge, to any person obtaining a copy
17+
of this software and associated documentation files (the "Software"), to deal
18+
in the Software without restriction, including without limitation the rights
19+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20+
copies of the Software, and to permit persons to whom the Software is
21+
furnished to do so, subject to the following conditions:
2422

25-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23+
The above copyright notice and this permission notice shall be included in
24+
all copies or substantial portions of the Software.
2625

26+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
27+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
28+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
29+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
30+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
31+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
32+
THE SOFTWARE.
2733
=========================================
2834
END OF winjs NOTICES AND INFORMATION
2935

0 commit comments

Comments
 (0)