Adopt esbuild for monaco-typescript

This commit is contained in:
Alexandru Dima 2021-11-12 13:26:25 +01:00
parent c0d4493bd9
commit dcbd8121d9
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
15 changed files with 66 additions and 335 deletions

View file

@ -142,6 +142,9 @@ function dts(_source, _destination, namespace) {
if (/^import/.test(line)) {
continue;
}
if (line === 'export {};') {
continue;
}
line = line.replace(/ /g, '\t');
line = line.replace(/declare /g, '');
if (line.length > 0) {