/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
/* *TypeScripttransformertoautomaticallyenable@ts-checkforrootfiles, *onlythosedirectlyreferencedfromthetsconfig.jsonincludeoption, *andautomaticallydisableforeverythingelse.
*/
exports.default = (program, host, _, { ts }) => { return ts.createProgram(
program.getRootFileNames(),
program.getCompilerOptions(),
{
...host,
getSourceFile(...args) {
let file = host.getSourceFile(...args); // If the source file doesn't have a @ts-nocheck directive. if (file.checkJsDirective?.enabled !== false) { // Add one based on it being included as root file in tsconfig.
file.checkJsDirective = {
enabled: program.getRootFileNames().includes(file.fileName),
};
} return file;
},
}
);
};
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.