Reduce size of typescript plugin (#13604)
This commit is contained in:
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;")
|
||||
|
||||
Reference in new issue
Block a user