mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 23:13:02 +01:00
Eliminate another require() call from typescriptServices
This commit is contained in:
parent
3b8ad270d8
commit
a25eb9ea65
3 changed files with 11 additions and 2 deletions
|
|
@ -25,6 +25,11 @@ const TYPESCRIPT_LIB_DESTINATION = path.join(__dirname, '../src/lib');
|
|||
tsServices.replace(/\n ts\.sys =([^]*)\n \}\)\(\);/m, `\n // MONACOCHANGE\n ts.sys = undefined;\n // END MONACOCHANGE`)
|
||||
);
|
||||
|
||||
// Eliminate another require() call...
|
||||
tsServices = (
|
||||
tsServices.replace(/return require\(fileNameToRequire\);/, `// MONACOCHANGE\n return undefined;\n // END MONACOCHANGE`)
|
||||
);
|
||||
|
||||
var tsServices_amd = tsServices +
|
||||
`
|
||||
// MONACOCHANGE
|
||||
|
|
|
|||
|
|
@ -89463,7 +89463,9 @@ var ts;
|
|||
ts.isJsPrivate = isJsPrivate;
|
||||
function tryRequire(fileNameToRequire) {
|
||||
try {
|
||||
return require(fileNameToRequire);
|
||||
// MONACOCHANGE
|
||||
return undefined;
|
||||
// END MONACOCHANGE
|
||||
}
|
||||
catch (_a) {
|
||||
return undefined;
|
||||
|
|
|
|||
|
|
@ -89463,7 +89463,9 @@ var ts;
|
|||
ts.isJsPrivate = isJsPrivate;
|
||||
function tryRequire(fileNameToRequire) {
|
||||
try {
|
||||
return require(fileNameToRequire);
|
||||
// MONACOCHANGE
|
||||
return undefined;
|
||||
// END MONACOCHANGE
|
||||
}
|
||||
catch (_a) {
|
||||
return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue