mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 07:00:11 +01:00
Remove CommonJS export pattern
This commit is contained in:
parent
53feef5cf5
commit
c0b99e4785
3 changed files with 7 additions and 2 deletions
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue