Reduce size of typescript plugin (#13604)

This commit is contained in:
fisker Cheung authored and GitHub committed 2022-10-10 20:28:54 +08:00
1 parent effe30a3b8
commit 885c3c89ca
1 file changed
+8
@@ -369,6 +369,14 @@ function modifyTypescriptModule(text) {
text.includes("ts.getWatchFactory = getWatchFactory;")
);
// `import`/`export` cache
source.removeSubmodule((text) =>
text.includes(
/* cspell:disable-next-line */
"ts.createCacheableExportInfoMap = createCacheableExportInfoMap;"
)
);
// `ts.canProduceDiagnostics`, `ts.createGetSymbolAccessibilityDiagnosticForNode`, and `ts.createGetSymbolAccessibilityDiagnosticForNode`
source.removeSubmodule((text) =>
text.includes("ts.canProduceDiagnostics = canProduceDiagnostics;")