MCPcopy Index your code
hub / github.com/react/react / parseSourceType

Function parseSourceType

compiler/packages/snap/src/compiler.ts:39–41  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

37}
38
39export function parseSourceType(source: string): 'script' | 'module' {
40 return source.indexOf('@script') !== -1 ? 'script' : 'module';
41}
42
43/**
44 * Parse react compiler plugin + environment options from test fixture. Note

Callers 1

transformFixtureInputFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected