Eliminate another require() call from typescriptServices

This commit is contained in:
Alex Dima 2018-11-13 13:31:19 +01:00
parent 3b8ad270d8
commit a25eb9ea65
3 changed files with 11 additions and 2 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;