Skip to content

Commit f3f7bc5

Browse files
committed
Fixes microsoft/monaco-editor#1729: Fix running the build on Windows (files with \r\n)
1 parent bf2dbfc commit f3f7bc5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

build/gulpfile.editor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ const compileEditorESMTask = task.define('compile-editor-esm', () => {
197197
});
198198

199199
function toExternalDTS(contents) {
200-
let lines = contents.split('\n');
200+
let lines = contents.split(/\r\n|\r|\n/);
201201
let killNextCloseCurlyBrace = false;
202202
for (let i = 0; i < lines.length; i++) {
203203
let line = lines[i];

0 commit comments

Comments
 (0)