MCPcopy Index your code
hub / github.com/tinyplex/tinybase / isSvelteModule

Function isSvelteModule

test/unit/documentation.test.ts:444–444  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

442 source.replace(/from ['"]svelte['"]/g, `from '${DOCS_SVELTE_SHIM_PATH}'`);
443
444const isSvelteModule = (path: string): boolean => /\.svelte\.[jt]s$/.test(path);
445
446const compileSvelteModule = (source: string, path: string): string =>
447 compileModule(

Callers 1

setupFunction · 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…