mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Strip sourceMappingURL directives
This commit is contained in:
parent
61a0941817
commit
778ace10c0
3 changed files with 8 additions and 4 deletions
|
|
@ -71,7 +71,7 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
|
||||||
define("vs/language/typescript/lib/typescriptServices", [], function() { return ts; });
|
define("vs/language/typescript/lib/typescriptServices", [], function() { return ts; });
|
||||||
// END MONACOCHANGE
|
// END MONACOCHANGE
|
||||||
`;
|
`;
|
||||||
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices-amd.js'), tsServices_amd);
|
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices-amd.js'), stripSourceMaps(tsServices_amd));
|
||||||
|
|
||||||
var tsServices_esm = generatedNote + tsServices +
|
var tsServices_esm = generatedNote + tsServices +
|
||||||
`
|
`
|
||||||
|
|
@ -87,7 +87,7 @@ export var ScriptTarget = ts.ScriptTarget;
|
||||||
export var TokenClass = ts.TokenClass;
|
export var TokenClass = ts.TokenClass;
|
||||||
// END MONACOCHANGE
|
// END MONACOCHANGE
|
||||||
`;
|
`;
|
||||||
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.js'), tsServices_esm);
|
fs.writeFileSync(path.join(TYPESCRIPT_LIB_DESTINATION, 'typescriptServices.js'), stripSourceMaps(tsServices_esm));
|
||||||
|
|
||||||
var dtsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescriptServices.d.ts')).toString();
|
var dtsServices = fs.readFileSync(path.join(TYPESCRIPT_LIB_SOURCE, 'typescriptServices.d.ts')).toString();
|
||||||
dtsServices +=
|
dtsServices +=
|
||||||
|
|
@ -265,3 +265,7 @@ function escapeText(text) {
|
||||||
resultPieces.push(text.substring(startPos, len));
|
resultPieces.push(text.substring(startPos, len));
|
||||||
return resultPieces.join('');
|
return resultPieces.join('');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function stripSourceMaps(str) {
|
||||||
|
return str.replace(/\/\/# sourceMappingURL[^\n]+/gm, '');
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -137510,7 +137510,7 @@ if (typeof module !== "undefined" && module.exports) {
|
||||||
module.exports = ts;
|
module.exports = ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
//# sourceMappingURL=typescriptServices.js.map
|
|
||||||
|
|
||||||
// MONACOCHANGE
|
// MONACOCHANGE
|
||||||
// Defining the entire module name because r.js has an issue and cannot bundle this file
|
// Defining the entire module name because r.js has an issue and cannot bundle this file
|
||||||
|
|
|
||||||
|
|
@ -137510,7 +137510,7 @@ if (typeof module !== "undefined" && module.exports) {
|
||||||
module.exports = ts;
|
module.exports = ts;
|
||||||
}
|
}
|
||||||
|
|
||||||
//# sourceMappingURL=typescriptServices.js.map
|
|
||||||
|
|
||||||
// MONACOCHANGE
|
// MONACOCHANGE
|
||||||
export var createClassifier = ts.createClassifier;
|
export var createClassifier = ts.createClassifier;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue