소스 검색

Remove CommonJS export pattern

Alex Dima 3 년 전
부모
커밋
c0b99e4785
3개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 0
      build/importTypescript.ts
  2. 1 1
      src/language/typescript/lib/typescriptServices-amd.js
  3. 1 1
      src/language/typescript/lib/typescriptServices.js

+ 5 - 0
build/importTypescript.ts

@@ -72,6 +72,11 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
 		'/* MONACOCHANGE */false/* END MONACOCHANGE */'
 		'/* 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.
 	// 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
 	// To avoid missing cases (or using an even more complex regex), temporarily remove comments
 	// about require() and then check for lines actually calling require().
 	// about require() and then check for lines actually calling require().

+ 1 - 1
src/language/typescript/lib/typescriptServices-amd.js

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

+ 1 - 1
src/language/typescript/lib/typescriptServices.js

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