Remove CommonJS export pattern

This commit is contained in:
Alex Dima 2022-02-05 00:48:01 +01:00
parent 53feef5cf5
commit c0b99e4785
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
3 changed files with 7 additions and 2 deletions

View file

@ -72,6 +72,11 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
'/* MONACOCHANGE */false/* END MONACOCHANGE */'
);
tsServices = tsServices.replace(
/module.exports = ts;/m,
'/* MONACOCHANGE */ /*module.exports = ts;*/ /* END MONACOCHANGE */'
);
// Flag any new require calls (outside comments) so they can be corrected preemptively.
// To avoid missing cases (or using an even more complex regex), temporarily remove comments
// about require() and then check for lines actually calling require().

View file

@ -162604,7 +162604,7 @@ if (typeof process === "undefined" || process.browser) {
globalThis.toolsVersion = ts.versionMajorMinor;
}
if (typeof module !== "undefined" && module.exports) {
module.exports = ts;
/* MONACOCHANGE */ /*module.exports = ts;*/ /* END MONACOCHANGE */
}
var ts;
(function (ts) {

View file

@ -162604,7 +162604,7 @@ if (typeof process === "undefined" || process.browser) {
globalThis.toolsVersion = ts.versionMajorMinor;
}
if (typeof module !== "undefined" && module.exports) {
module.exports = ts;
/* MONACOCHANGE */ /*module.exports = ts;*/ /* END MONACOCHANGE */
}
var ts;
(function (ts) {