MCPcopy
hub / github.com/plotly/dash / getTsConfigCompilerOptions

Function getTsConfigCompilerOptions

dash/extract-meta.js:37–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37function getTsConfigCompilerOptions() {
38 // Since extract-meta can be run on JavaScript sources, if trying to get the
39 // config doesn't work, we can fall back gracefully.
40 try {
41 const tsconfig = ts.getParsedCommandLineOfConfigFile('tsconfig.json', { esModuleInterop: true }, ts.sys);
42 return tsconfig?.options ?? {};
43 } catch {
44 return {};
45 }
46}
47
48let failedBuild = false;
49const excludedDocProps = ['setProps', 'id', 'className', 'style'];

Callers 1

gatherComponentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…