mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 20:52:56 +01:00
Adds a regex fix for the perf_hooks import in TS 4.1
This commit is contained in:
parent
2dcf85a5e8
commit
cc8da6b7fb
1 changed files with 4 additions and 0 deletions
|
|
@ -62,6 +62,10 @@ export const typescriptVersion = "${typeScriptDependencyVersion}";\n`
|
|||
/^( +)debugger;$/m,
|
||||
'$1// MONACOCHANGE\n$1// debugger;\n$1// END MONACOCHANGE'
|
||||
);
|
||||
tsServices = tsServices.replace(
|
||||
/= require\("perf_hooks"\)/m,
|
||||
'/* MONACOCHANGE */= {}/* 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue